File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
ocpp-v1_6/src/main/java/eu/chargetime/ocpp/model Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ public Integer getInterval() {
122122 */
123123 @ XmlElement
124124 public void setInterval (Integer interval ) {
125- if (interval <= 0 ) {
125+ if (interval < 0 ) {
126126 throw new PropertyConstraintException (interval , "interval be a positive value" );
127127 }
128128
@@ -172,7 +172,7 @@ public boolean equals(Object o) {
172172 if (this == o ) return true ;
173173 if (o == null || getClass () != o .getClass ()) return false ;
174174 BootNotificationConfirmation that = (BootNotificationConfirmation ) o ;
175- return interval == that .interval
175+ return Objects . equals ( interval , that .interval )
176176 && Objects .equals (currentTime , that .currentTime )
177177 && status == that .status ;
178178 }
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ public boolean equals(Object o) {
131131 if (this == o ) return true ;
132132 if (o == null || getClass () != o .getClass ()) return false ;
133133 ChangeAvailabilityRequest that = (ChangeAvailabilityRequest ) o ;
134- return connectorId == that .connectorId && type == that .type ;
134+ return Objects . equals ( connectorId , that .connectorId ) && type == that .type ;
135135 }
136136
137137 @ Override
Original file line number Diff line number Diff line change @@ -148,8 +148,8 @@ public boolean equals(Object o) {
148148 if (this == o ) return true ;
149149 if (o == null || getClass () != o .getClass ()) return false ;
150150 MeterValuesRequest that = (MeterValuesRequest ) o ;
151- return connectorId == that .connectorId
152- && transactionId == that .transactionId
151+ return Objects . equals ( connectorId , that .connectorId )
152+ && Objects . equals ( transactionId , that .transactionId )
153153 && Arrays .equals (meterValue , that .meterValue );
154154 }
155155
Original file line number Diff line number Diff line change @@ -178,8 +178,8 @@ public boolean equals(Object o) {
178178 if (this == o ) return true ;
179179 if (o == null || getClass () != o .getClass ()) return false ;
180180 GetDiagnosticsRequest that = (GetDiagnosticsRequest ) o ;
181- return retries == that .retries
182- && retryInterval == that .retryInterval
181+ return Objects . equals ( retries , that .retries )
182+ && Objects . equals ( retryInterval , that .retryInterval )
183183 && Objects .equals (location , that .location )
184184 && Objects .equals (startTime , that .startTime )
185185 && Objects .equals (stopTime , that .stopTime );
You can’t perform that action at this time.
0 commit comments