File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 203203 <groupId >org.apache.maven.plugins</groupId >
204204 <artifactId >maven-checkstyle-plugin</artifactId >
205205 <version >3.1.2</version >
206+ <dependencies >
207+ <dependency >
208+ <groupId >com.puppycrawl.tools</groupId >
209+ <artifactId >checkstyle</artifactId >
210+ <version >9.2.1</version >
211+ </dependency >
212+ </dependencies >
206213 <configuration >
207214 <configLocation >configs/checkstyle.xml</configLocation >
208215 </configuration >
Original file line number Diff line number Diff line change @@ -164,12 +164,12 @@ public MySQLConstant castAs(CastType type) {
164164 try {
165165 String substring = value .substring (0 , i );
166166 long val = Long .parseLong (substring );
167- return MySQLConstant .createIntConstant (val , type == CastType .SIGNED ? true : false );
167+ return MySQLConstant .createIntConstant (val , type == CastType .SIGNED );
168168 } catch (NumberFormatException e ) {
169169 // ignore
170170 }
171171 }
172- return MySQLConstant .createIntConstant (0 , type == CastType .SIGNED ? true : false );
172+ return MySQLConstant .createIntConstant (0 , type == CastType .SIGNED );
173173 } else {
174174 throw new AssertionError ();
175175 }
Original file line number Diff line number Diff line change @@ -282,11 +282,11 @@ public OceanBaseConstant castAs(CastType type) {
282282 try {
283283 String substring = value .substring (0 , i );
284284 long val = Long .parseLong (substring );
285- return OceanBaseConstant .createIntConstant (val , type == CastType .SIGNED ? true : false );
285+ return OceanBaseConstant .createIntConstant (val , type == CastType .SIGNED );
286286 } catch (NumberFormatException e ) {
287287 }
288288 }
289- return OceanBaseConstant .createIntConstant (0 , type == CastType .SIGNED ? true : false );
289+ return OceanBaseConstant .createIntConstant (0 , type == CastType .SIGNED );
290290 } else {
291291 throw new AssertionError ();
292292 }
You can’t perform that action at this time.
0 commit comments