private Set<Alert> addNotesToLeg(Leg leg, Set<Alert> notes) {
   if (notes != null) {
     for (Alert note : notes) {
       leg.addAlert(note);
     }
   }
   return notes;
 }
예제 #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;
 }