File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed
spring-javaformat/spring-javaformat-checkstyle/src/test/resources/source Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 11:release-version: 0.0.32
2- :checkstyle-version: 8.45.1
2+ :checkstyle-version: 9.3
33== Spring Java Format
44
55
Original file line number Diff line number Diff line change 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>
Original file line number Diff line number Diff line change 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 }
Original file line number Diff line number Diff line change 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 }
You can’t perform that action at this time.
0 commit comments