Skip to content

Commit beae9ec

Browse files
committed
Upgrade to Checkstyle 9.3
Closes gh-333
1 parent 3741699 commit beae9ec

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

README.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:release-version: 0.0.32
2-
:checkstyle-version: 8.45.1
2+
:checkstyle-version: 9.3
33
== Spring Java Format
44

55

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<ant-contrib.version>1.0b3</ant-contrib.version>
4040
<asm.version>7.3.1</asm.version>
4141
<assertj.version>3.8.0</assertj.version>
42-
<checkstyle.version>9.0.1</checkstyle.version>
42+
<checkstyle.version>9.3</checkstyle.version>
4343
<gradle.version>3.4</gradle.version>
4444
<groovy.version>2.4.21</groovy.version>
4545
<log4j.version>2.17.1</log4j.version>

spring-javaformat/spring-javaformat-checkstyle/src/test/resources/source/TernaryInIf.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2019 the original author or authors.
2+
* Copyright 2017-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,7 +24,9 @@ public class TernaryInIf {
2424
public void test() {
2525
boolean a = true;
2626
boolean b = false;
27-
if ((a != b) ? true : false) {
27+
int c = 1;
28+
int d = 2;
29+
if ((a != b) ? d < c : c >= d) {
2830
System.out.println("OK");
2931
}
3032
}

spring-javaformat/spring-javaformat-checkstyle/src/test/resources/source/TernaryInWhile.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2019 the original author or authors.
2+
* Copyright 2017-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,7 +24,9 @@ public class TernaryInWhile {
2424
public void test() {
2525
boolean a = true;
2626
boolean b = false;
27-
while ((a != b) ? true : false) {
27+
int c = 1;
28+
int d = 2;
29+
while ((a != b) ? d < c : c >= d) {
2830
System.out.println("OK");
2931
}
3032
}

0 commit comments

Comments
 (0)