File tree Expand file tree Collapse file tree 2 files changed +4
-14
lines changed 
src/main/java/org/opentripplanner/model Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -48,15 +48,9 @@ public String toString() {
4848      .of (FareProduct .class )
4949      .addStr ("id" , id .toString ())
5050      .addObj ("amount" , amount );
51-     if  (duration  != null ) {
52-       builder .addDuration ("duration" , duration );
53-     }
54-     if  (category  != null ) {
55-       builder .addObj ("category" , category );
56-     }
57-     if  (medium  != null ) {
58-       builder .addObj ("medium" , medium );
59-     }
51+     builder .addDuration ("duration" , duration );
52+     builder .addObj ("category" , category );
53+     builder .addObj ("medium" , medium );
6054
6155    return  builder .toString ();
6256  }
Original file line number Diff line number Diff line change @@ -85,11 +85,7 @@ public int getGeneralizedCost() {
8585
8686  @ Override 
8787  public  void  setFareProducts (List <FareProductUse > products ) {
88-     throw  new  UnsupportedOperationException (
89-       "Setting the fare products on a leg of type %s is unsupported." .formatted (
90-           this .getClass ().getSimpleName ()
91-         )
92-     );
88+     throw  new  UnsupportedOperationException ();
9389  }
9490
9591  @ Override 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments