private Set<Alert> addNotesToLeg(Leg leg, Set<Alert> notes) {
   if (notes != null) {
     for (Alert note : notes) {
       leg.addAlert(note);
     }
   }
   return notes;
 }
Exemplo n.º 2
0
 private Set<Alert> addNotesToLeg(Leg leg, EdgeNarrative edgeNarrative) {
   Set<Alert> notes = edgeNarrative.getNotes();
   if (notes != null) {
     for (Alert note : notes) {
       leg.addAlert(note);
     }
   }
   return notes;
 }