File tree 4 files changed +10
-6
lines changed
spring-javaformat/spring-javaformat-checkstyle/src/test/resources/source
4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
:release-version: 0.0.32
2
- :checkstyle-version: 8.45.1
2
+ :checkstyle-version: 9.3
3
3
== Spring Java Format
4
4
5
5
Original file line number Diff line number Diff line change 39
39
<ant-contrib .version>1.0b3</ant-contrib .version>
40
40
<asm .version>7.3.1</asm .version>
41
41
<assertj .version>3.8.0</assertj .version>
42
- <checkstyle .version>9.0.1 </checkstyle .version>
42
+ <checkstyle .version>9.3 </checkstyle .version>
43
43
<gradle .version>3.4</gradle .version>
44
44
<groovy .version>2.4.21</groovy .version>
45
45
<log4j .version>2.17.1</log4j .version>
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2017-2019 the original author or authors.
2
+ * Copyright 2017-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -24,7 +24,9 @@ public class TernaryInIf {
24
24
public void test () {
25
25
boolean a = true ;
26
26
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 ) {
28
30
System .out .println ("OK" );
29
31
}
30
32
}
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2017-2019 the original author or authors.
2
+ * Copyright 2017-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -24,7 +24,9 @@ public class TernaryInWhile {
24
24
public void test () {
25
25
boolean a = true ;
26
26
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 ) {
28
30
System .out .println ("OK" );
29
31
}
30
32
}
You can’t perform that action at this time.
0 commit comments