Skip to content

Commit a1aa0ff

Browse files
committed
Update the Checkstyle version
1 parent 4c59e85 commit a1aa0ff

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,13 @@
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>

src/sqlancer/mysql/ast/MySQLConstant.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

src/sqlancer/oceanbase/ast/OceanBaseConstant.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)