aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation
diff options
context:
space:
mode:
authorMichal Kordas <kordas.michal@gmail.com>2015-11-11 00:05:03 +0100
committerRoman Ivanov <ivanov-jr@mail.ru>2015-11-11 05:56:51 -0800
commitedb810c10e121b34f4222a4bba9012add00f1e41 (patch)
tree8f948b59cb8c91eec3b8c394c72157d2c8f3140b /src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation
parent992678f1baf3a7f6a1cf579232457bd97d408e4d (diff)
downloadcheckstyle-edb810c10e121b34f4222a4bba9012add00f1e41.tar.gz
Issue #2541: Clean up input files to not use forbidden APIs
Diffstat (limited to 'src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation')
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputBraceAdjustment.java2
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputCommentsIndentationInSwitchBlock.java2
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidLabelIndent.java12
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidMethodIndent.java10
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidSwitchIndent.java12
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidTryIndent.java30
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputUseTwoSpaces.java2
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidBlockIndent.java2
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidCommaIndent.java2
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidDotIndent.java2
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidLabelIndent.java6
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidMethodIndent.java14
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidSwitchIndent.java14
-rw-r--r--src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidTryIndent.java28
14 files changed, 69 insertions, 69 deletions
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputBraceAdjustment.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputBraceAdjustment.java
index 7dd282c8a..fb510d3d7 100644
--- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputBraceAdjustment.java
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputBraceAdjustment.java
@@ -24,7 +24,7 @@ public class InputBraceAdjustment //indent:0 exp:0
boolean uglyGnuStyle = true; //indent:8 exp:8
if (uglyGnuStyle) //indent:8 exp:8
{ //indent:10 exp:10
- System.out.println("ugly GNU style braces"); //indent:12 exp:12
+ System.identityHashCode("ugly GNU style braces"); //indent:12 exp:12
} //indent:8 exp:10 warn
} //indent:6 exp:6
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputCommentsIndentationInSwitchBlock.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputCommentsIndentationInSwitchBlock.java
index eb9d9aded..69c419cfd 100644
--- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputCommentsIndentationInSwitchBlock.java
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputCommentsIndentationInSwitchBlock.java
@@ -66,7 +66,7 @@ public class InputCommentsIndentationInSwitchBlock {
int a;
}
// violation
- case "18": { System.out.println();
+ case "18": { System.lineSeparator();
} // trailing comment
case "19":
// comment
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidLabelIndent.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidLabelIndent.java
index cf1d27589..7be34f839 100644
--- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidLabelIndent.java
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidLabelIndent.java
@@ -22,21 +22,21 @@ public class InputInvalidLabelIndent { //indent:0 exp:0
while (test) { //indent:8 exp:8
label: //indent:10 exp:8,12 warn
- System.out.println("label test"); //indent:12 exp:12
+ System.identityHashCode("label test"); //indent:12 exp:12
if (test) { //indent:12 exp:12
unusedLabel: //indent:16 exp:16
- System.out.println("more testing"); //indent:16 exp:16
+ System.identityHashCode("more testing"); //indent:16 exp:16
} //indent:12 exp:12
} //indent:8 exp:8
label2: //indent:2 exp:4,8 warn
- System.out.println("toplevel"); //indent:8 exp:8
+ System.identityHashCode("toplevel"); //indent:8 exp:8
label3: //indent:4 exp:4
- System.out.println("toplevel"); //indent:18 exp:8,12 warn
- System.out.println("toplevel"); //indent:18 exp:8 warn
+ System.identityHashCode("toplevel"); //indent:18 exp:8,12 warn
+ System.identityHashCode("toplevel"); //indent:18 exp:8 warn
label4: //indent:4 exp:4
- System.out.println("toplevel"); //indent:6 exp:8,12 warn
+ System.identityHashCode("toplevel"); //indent:6 exp:8,12 warn
label5: //indent:4 exp:4
System //indent:6 exp:8,12 warn
.out. //indent:12 exp:>=10
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidMethodIndent.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidMethodIndent.java
index ff428ae74..724329e3c 100644
--- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidMethodIndent.java
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidMethodIndent.java
@@ -100,20 +100,20 @@ public class InputInvalidMethodIndent { //indent:0 exp:0
System.getProperty("foo"); //indent:10 exp:12 warn
} //indent:6 exp:8 warn
- System.out.println("methods are: " + //indent:8 exp:8
+ System.identityHashCode("methods are: " + //indent:8 exp:8
Arrays.asList( //indent:10 exp:12 warn
new String[] {"method"}).toString()); //indent:16 exp:>=14
- System.out.println("methods are: " + //indent:8 exp:8
+ System.identityHashCode("methods are: " + //indent:8 exp:8
Arrays.asList( //indent:12 exp:>=12
new String[] {"method"}).toString()); //indent:14 exp:>=14
- System.out.println("methods are: " //indent:8 exp:8
+ System.identityHashCode("methods are: " //indent:8 exp:8
+ Arrays.asList( //indent:10 exp:12 warn
new String[] {"method"}).toString()); //indent:16 exp:>=14
- System.out.println("methods are: " //indent:8 exp:8
+ System.identityHashCode("methods are: " //indent:8 exp:8
+ Arrays.asList( //indent:12 exp:>=12
new String[] {"method"}).toString()); //indent:14 exp:>=12
@@ -126,7 +126,7 @@ public class InputInvalidMethodIndent { //indent:0 exp:0
new String("type") //indent:10 exp:12 warn
); //indent:6 exp:8 warn
- System.out.println("methods are: " + Arrays.asList( //indent:8 exp:8
+ System.identityHashCode("methods are: " + Arrays.asList( //indent:8 exp:8
new String[] {"method"}).toString() //indent:12 exp:>=12
); //indent:6 exp:8 warn
} //indent:4 exp:4
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidSwitchIndent.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidSwitchIndent.java
index 6d73b0dd3..9585c5c2b 100644
--- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidSwitchIndent.java
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidSwitchIndent.java
@@ -30,7 +30,7 @@ public class InputInvalidSwitchIndent { //indent:0 exp:0
switch (s) { //indent:6 exp:8 warn
case 4: //indent:10 exp:12 warn
- System.out.println(""); //indent:14 exp:16 warn
+ System.identityHashCode(""); //indent:14 exp:16 warn
break; //indent:16 exp:16
case CONST: //indent:12 exp:12
@@ -41,7 +41,7 @@ public class InputInvalidSwitchIndent { //indent:0 exp:0
break; //indent:16 exp:16
default: //indent:10 exp:12 warn
- System.out.println(""); //indent:14 exp:16 warn
+ System.identityHashCode(""); //indent:14 exp:16 warn
break; //indent:14 exp:16 warn
} //indent:8 exp:8
@@ -50,21 +50,21 @@ public class InputInvalidSwitchIndent { //indent:0 exp:0
switch (s) { //indent:8 exp:8
case 4: { //indent:12 exp:12
- System.out.println(""); //indent:14 exp:16 warn
+ System.identityHashCode(""); //indent:14 exp:16 warn
break; //indent:18 exp:16 warn
} //indent:10 exp:12 warn
case CONST2: //indent:12 exp:12
case CONST3: //indent:12 exp:12
{ //indent:10 exp:12 warn
- System.out.println(""); //indent:16 exp:16
+ System.identityHashCode(""); //indent:16 exp:16
break; //indent:16 exp:16
} //indent:14 exp:12 warn
case 22: //indent:12 exp:12
{ //indent:14 exp:12 warn
- System.out.println(""); //indent:16 exp:16
+ System.identityHashCode(""); //indent:16 exp:16
break; //indent:16 exp:16
} //indent:10 exp:12 warn
} //indent:8 exp:8
@@ -80,7 +80,7 @@ public class InputInvalidSwitchIndent { //indent:0 exp:0
case //indent:12 exp:12
CONST3: //indent:14 exp:16 warn
{ //indent:12 exp:12
- System.out.println(""); //indent:16 exp:16
+ System.identityHashCode(""); //indent:16 exp:16
break; //indent:16 exp:16
} //indent:12 exp:12
} //indent:8 exp:8
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidTryIndent.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidTryIndent.java
index 5e6da9768..0f4e6da47 100644
--- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidTryIndent.java
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputInvalidTryIndent.java
@@ -24,26 +24,26 @@ public class InputInvalidTryIndent { //indent:0 exp:0
try { //indent:9 exp:8 warn
} catch (Throwable t) { //indent:7 exp:8 warn
- System.out.println("err"); //indent:12 exp:12
+ System.identityHashCode("err"); //indent:12 exp:12
} //indent:7 exp:8 warn
try { //indent:4 exp:8 warn
- System.out.println("test"); //indent:8 exp:12 warn
+ System.identityHashCode("test"); //indent:8 exp:12 warn
} finally { //indent:4 exp:8 warn
- System.out.println("finally"); //indent:8 exp:12 warn
+ System.identityHashCode("finally"); //indent:8 exp:12 warn
} //indent:8 exp:8
try { //indent:8 exp:8
} catch (Throwable t) { //indent:8 exp:8
- System.out.println("err"); //indent:8 exp:12 warn
+ System.identityHashCode("err"); //indent:8 exp:12 warn
} finally { //indent:8 exp:8
} //indent:8 exp:8
try { //indent:8 exp:8
} catch (Exception t) { //indent:10 exp:8 warn
- System.out.println("err"); //indent:12 exp:12
+ System.identityHashCode("err"); //indent:12 exp:12
} catch (Throwable t) { //indent:6 exp:8 warn
- System.out.println("err"); //indent:12 exp:12
+ System.identityHashCode("err"); //indent:12 exp:12
} //indent:8 exp:8
try { //indent:8 exp:8
@@ -53,31 +53,31 @@ public class InputInvalidTryIndent { //indent:0 exp:0
try { //indent:8 exp:8
- System.out.println("try"); //indent:12 exp:12
+ System.identityHashCode("try"); //indent:12 exp:12
} //indent:8 exp:8
catch (Exception t) { //indent:8 exp:8
- System.out.println("err"); //indent:10 exp:12 warn
- System.out.println("err"); //indent:14 exp:12 warn
- System.out.println("err"); //indent:10 exp:12 warn
+ System.identityHashCode("err"); //indent:10 exp:12 warn
+ System.identityHashCode("err"); //indent:14 exp:12 warn
+ System.identityHashCode("err"); //indent:10 exp:12 warn
} //indent:8 exp:8
catch (Throwable t) { //indent:6 exp:8 warn
- System.out.println("err"); //indent:12 exp:12
+ System.identityHashCode("err"); //indent:12 exp:12
} //indent:8 exp:8
finally { //indent:8 exp:8
} //indent:8 exp:8
try //indent:8 exp:8
{ //indent:10 exp:8 warn
- System.out.println("try"); //indent:12 exp:12
+ System.identityHashCode("try"); //indent:12 exp:12
} //indent:10 exp:8 warn
catch (Exception t) //indent:8 exp:8
{ //indent:6 exp:8 warn
- System.out.println("err"); //indent:12 exp:12
- System.out.println("err"); //indent:12 exp:12
+ System.identityHashCode("err"); //indent:12 exp:12
+ System.identityHashCode("err"); //indent:12 exp:12
} //indent:10 exp:8 warn
catch (Throwable t) //indent:8 exp:8
{ //indent:8 exp:8
- System.out.println("err"); //indent:10 exp:12 warn
+ System.identityHashCode("err"); //indent:10 exp:12 warn
} //indent:8 exp:8
finally //indent:8 exp:8
{ //indent:8 exp:8
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputUseTwoSpaces.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputUseTwoSpaces.java
index 528bda87c..6a2caaf41 100644
--- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputUseTwoSpaces.java
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputUseTwoSpaces.java
@@ -33,7 +33,7 @@ public class InputUseTwoSpaces { //indent:0 exp:0
class Test { //indent:0 exp:0
public static void main(String[] args) { //indent:2 exp:2
- System.out.println(" Hello" + //indent:4 exp:4
+ System.identityHashCode(" Hello" + //indent:4 exp:4
new Object() { //indent:6 exp:>=6
public String toString() { //indent:8 exp:8
return "World"; //indent:10 exp:10
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidBlockIndent.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidBlockIndent.java
index d85c26680..b2b4589e7 100644
--- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidBlockIndent.java
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidBlockIndent.java
@@ -152,7 +152,7 @@ class bug1260079 //indent:0 exp:0
{ //indent:8 exp:8
public void run() //indent:12 exp:12
{ //indent:12 exp:12
- System.out.println("ran"); //indent:16 exp:16
+ System.identityHashCode("ran"); //indent:16 exp:16
} //indent:12 exp:12
}.start(); //indent:8 exp:8
} //indent:4 exp:4
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidCommaIndent.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidCommaIndent.java
index 5de927ad6..d204ea12c 100644
--- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidCommaIndent.java
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidCommaIndent.java
@@ -34,7 +34,7 @@ public class InputValidCommaIndent { //indent:0 exp:0
if ((j == 2 && k == 3) //indent:8 exp:8
|| test) { //indent:14 exp:>=12
- System.out.println("test"); //indent:12 exp:12
+ System.identityHashCode("test"); //indent:12 exp:12
} //indent:8 exp:8
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidDotIndent.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidDotIndent.java
index c334a0e53..c1373182b 100644
--- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidDotIndent.java
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidDotIndent.java
@@ -22,7 +22,7 @@ public class InputValidDotIndent { //indent:0 exp:0
/** Creates a new instance of InputValidDotIndent */ //indent:4 exp:4
public InputValidDotIndent() { //indent:4 exp:4
- System.out.println(); //indent:8 exp:8
+ System.lineSeparator(); //indent:8 exp:8
System. //indent:8 exp:8
out.println(); //indent:12 exp:12
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidLabelIndent.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidLabelIndent.java
index 4a35b2840..4e4872537 100644
--- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidLabelIndent.java
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidLabelIndent.java
@@ -22,16 +22,16 @@ public class InputValidLabelIndent { //indent:0 exp:0
while (test) { //indent:8 exp:8
label: //indent:8 exp:8,12
- System.out.println("label test"); //indent:12 exp:12,16
+ System.identityHashCode("label test"); //indent:12 exp:12,16
if (test) { //indent:12 exp:12
unusedLabel: //indent:12 exp:12
- System.out.println("more testing"); //indent:16 exp:16,20
+ System.identityHashCode("more testing"); //indent:16 exp:16,20
} //indent:12 exp:12
} //indent:8 exp:8
label2: //indent:4 exp:4,8
- System.out.println("toplevel"); //indent:8 exp:8,12
+ System.identityHashCode("toplevel"); //indent:8 exp:8,12
} //indent:4 exp:4
} //indent:0 exp:0
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidMethodIndent.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidMethodIndent.java
index 1822713d8..316299bc5 100644
--- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidMethodIndent.java
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidMethodIndent.java
@@ -140,14 +140,14 @@ public class InputValidMethodIndent extends java.awt.event.MouseAdapter implemen
void method6() { //indent:4 exp:4
- System.out.println("methods are: " + Arrays.asList( //indent:8 exp:8
+ System.identityHashCode("methods are: " + Arrays.asList( //indent:8 exp:8
new String[] {"method"}).toString()); //indent:12 exp:>=12
- System.out.println("methods are: " + Arrays.asList( //indent:8 exp:8
+ System.identityHashCode("methods are: " + Arrays.asList( //indent:8 exp:8
new String[] {"method"} //indent:12 exp:>=12
).toString()); //indent:8 exp:8
- System.out.println("methods are: " + Arrays.asList( //indent:8 exp:8
+ System.identityHashCode("methods are: " + Arrays.asList( //indent:8 exp:8
new String[] {"method"}).toString() //indent:12 exp:>=12
); //indent:8 exp:8
@@ -158,11 +158,11 @@ public class InputValidMethodIndent extends java.awt.event.MouseAdapter implemen
myfunc2(3, 4, method2(3, 4, 5, 6) + 5, //indent:8 exp:8
6, 7, 8, 9); //indent:12 exp:>=12
- System.out.println("methods are: " + //indent:8 exp:8
+ System.identityHashCode("methods are: " + //indent:8 exp:8
Arrays.asList( //indent:12 exp:>=12
new String[] {"method"}).toString()); //indent:16 exp:>=16
- System.out.println("methods are: " //indent:8 exp:8
+ System.identityHashCode("methods are: " //indent:8 exp:8
+ Arrays.asList( //indent:12 exp:>=12
new String[] {"method"}).toString()); //indent:16 exp:>=16
@@ -170,11 +170,11 @@ public class InputValidMethodIndent extends java.awt.event.MouseAdapter implemen
String blah = (String) System.getProperty( //indent:8 exp:8
new String("type")); //indent:12 exp:>=12
- System.out.println(method1() + "mytext" //indent:8 exp:8
+ System.identityHashCode(method1() + "mytext" //indent:8 exp:8
+ " at indentation level not at correct indentation, " //indent:12 exp:>=12
+ method1()); //indent:12 exp:>=12
- System.out.println( //indent:8 exp:8
+ System.identityHashCode( //indent:8 exp:8
method1() + "mytext" //indent:12 exp:>=12
+ " at indentation level not at correct indentation, " //indent:16 exp:>=12
+ method1()); //indent:16 exp:>=12
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidSwitchIndent.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidSwitchIndent.java
index 42e7948e9..a239e4a97 100644
--- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidSwitchIndent.java
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidSwitchIndent.java
@@ -30,7 +30,7 @@ public class InputValidSwitchIndent { //indent:0 exp:0
switch (s) { //indent:8 exp:8
case 4: //indent:12 exp:12
- System.out.println(""); //indent:16 exp:16
+ System.identityHashCode(""); //indent:16 exp:16
break; //indent:16 exp:16
case CONST: //indent:12 exp:12
@@ -41,7 +41,7 @@ public class InputValidSwitchIndent { //indent:0 exp:0
break; //indent:16 exp:16
default: //indent:12 exp:12
- System.out.println(""); //indent:16 exp:16
+ System.identityHashCode(""); //indent:16 exp:16
break; //indent:16 exp:16
} //indent:8 exp:8
@@ -50,7 +50,7 @@ public class InputValidSwitchIndent { //indent:0 exp:0
switch (s) { //indent:8 exp:8
case 4: { //indent:12 exp:12
- System.out.println(""); //indent:16 exp:16
+ System.identityHashCode(""); //indent:16 exp:16
break; //indent:16 exp:16
} //indent:12 exp:12
@@ -60,7 +60,7 @@ public class InputValidSwitchIndent { //indent:0 exp:0
case CONST2: //indent:12 exp:12
case CONST3: //indent:12 exp:12
{ //indent:12 exp:12
- System.out.println(""); //indent:16 exp:16
+ System.identityHashCode(""); //indent:16 exp:16
break; //indent:16 exp:16
} //indent:12 exp:12
@@ -73,7 +73,7 @@ public class InputValidSwitchIndent { //indent:0 exp:0
case //indent:12 exp:12
4: { //indent:16 exp:16
- System.out.println(""); //indent:16 exp:16
+ System.identityHashCode(""); //indent:16 exp:16
break; //indent:16 exp:16
} //indent:12 exp:12
@@ -85,7 +85,7 @@ public class InputValidSwitchIndent { //indent:0 exp:0
case //indent:12 exp:12
CONST3: //indent:16 exp:16
{ //indent:12 exp:12
- System.out.println(""); //indent:16 exp:16
+ System.identityHashCode(""); //indent:16 exp:16
break; //indent:16 exp:16
} //indent:12 exp:12
@@ -99,7 +99,7 @@ public class InputValidSwitchIndent { //indent:0 exp:0
switch (s) { //indent:8 exp:8
default: //indent:12 exp:12
- System.out.println(""); //indent:16 exp:16
+ System.identityHashCode(""); //indent:16 exp:16
break; //indent:16 exp:16
} //indent:8 exp:8
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidTryIndent.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidTryIndent.java
index 68f31e574..959fb07bf 100644
--- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidTryIndent.java
+++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputValidTryIndent.java
@@ -24,26 +24,26 @@ public class InputValidTryIndent { //indent:0 exp:0
try { //indent:8 exp:8
} catch (Throwable t) { //indent:8 exp:8
- System.out.println("err"); //indent:12 exp:12
+ System.identityHashCode("err"); //indent:12 exp:12
} //indent:8 exp:8
try { //indent:8 exp:8
- System.out.println("test"); //indent:12 exp:12
+ System.identityHashCode("test"); //indent:12 exp:12
} finally { //indent:8 exp:8
- System.out.println("finally"); //indent:12 exp:12
+ System.identityHashCode("finally"); //indent:12 exp:12
} //indent:8 exp:8
try { //indent:8 exp:8
} catch (Throwable t) { //indent:8 exp:8
- System.out.println("err"); //indent:12 exp:12
+ System.identityHashCode("err"); //indent:12 exp:12
} finally { //indent:8 exp:8
} //indent:8 exp:8
try { //indent:8 exp:8
} catch (Exception t) { //indent:8 exp:8
- System.out.println("err"); //indent:12 exp:12
+ System.identityHashCode("err"); //indent:12 exp:12
} catch (Throwable t) { //indent:8 exp:8
- System.out.println("err"); //indent:12 exp:12
+ System.identityHashCode("err"); //indent:12 exp:12
} //indent:8 exp:8
try { //indent:8 exp:8
@@ -53,30 +53,30 @@ public class InputValidTryIndent { //indent:0 exp:0
try { //indent:8 exp:8
- System.out.println("try"); //indent:12 exp:12
+ System.identityHashCode("try"); //indent:12 exp:12
} //indent:8 exp:8
catch (Exception t) { //indent:8 exp:8
- System.out.println("err"); //indent:12 exp:12
- System.out.println("err"); //indent:12 exp:12
+ System.identityHashCode("err"); //indent:12 exp:12
+ System.identityHashCode("err"); //indent:12 exp:12
} //indent:8 exp:8
catch (Throwable t) { //indent:8 exp:8
- System.out.println("err"); //indent:12 exp:12
+ System.identityHashCode("err"); //indent:12 exp:12
} //indent:8 exp:8
finally { //indent:8 exp:8
} //indent:8 exp:8
try //indent:8 exp:8
{ //indent:8 exp:8
- System.out.println("try"); //indent:12 exp:12
+ System.identityHashCode("try"); //indent:12 exp:12
} //indent:8 exp:8
catch (Exception t) //indent:8 exp:8
{ //indent:8 exp:8
- System.out.println("err"); //indent:12 exp:12
- System.out.println("err"); //indent:12 exp:12
+ System.identityHashCode("err"); //indent:12 exp:12
+ System.identityHashCode("err"); //indent:12 exp:12
} //indent:8 exp:8
catch (Throwable t) //indent:8 exp:8
{ //indent:8 exp:8
- System.out.println("err"); //indent:12 exp:12
+ System.identityHashCode("err"); //indent:12 exp:12
} //indent:8 exp:8
finally //indent:8 exp:8
{ //indent:8 exp:8