diff --git a/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule42blockindentation/InputIndentationCorrectReturnAndParameter.java b/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule42blockindentation/InputIndentationCorrectReturnAndParameter.java index 66ae234fa71..4f8a483598c 100644 --- a/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule42blockindentation/InputIndentationCorrectReturnAndParameter.java +++ b/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule42blockindentation/InputIndentationCorrectReturnAndParameter.java @@ -108,10 +108,10 @@ boolean fooMethodWithIf(String stringStringStringStringLooooongString, //indent: } //indent:6 exp:6 boolean fooReturn() { //indent:6 exp:6 - return conditionFirst("Loooooooooooooooooong", new //indent:8 exp:8 + return conditionFirst("Loooooooooooooooooong", new //indent:8 exp:8 SecondClassLongNam4("Loooooooooooooooooog"). //indent:12 exp:12 - getInteger(new FooReturnClass(), "Loooooooooooooooooog"), //indent:16 exp:>=12 - new InnerClassFoo()); //indent:19 exp:>=12 + getInteger(new FooReturnClass(), "Loooooooooooooooooog"), //indent:16 exp:>=12 + new InnerClassFoo()); //indent:19 exp:>=12 } //indent:6 exp:6 }; //indent:4 exp:4 } //indent:2 exp:2 diff --git a/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule42blockindentation/InputIndentationCorrectWhileDoWhileAndParameter.java b/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule42blockindentation/InputIndentationCorrectWhileDoWhileAndParameter.java index 08b13d2b68b..a82cda948d3 100644 --- a/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule42blockindentation/InputIndentationCorrectWhileDoWhileAndParameter.java +++ b/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule42blockindentation/InputIndentationCorrectWhileDoWhileAndParameter.java @@ -119,7 +119,7 @@ void fooMethodWithIf() { //indent:4 exp:4 conditionNoArg() || conditionNoArg()) {} //indent:14 exp:>=10 do { //indent:6 exp:6 - /* Do smth*/ //indent:8 exp:8 + /* Do smth*/ //indent:8 exp:8 } while (conditionSecond(10000000000.0, new //indent:6 exp:6 SecondWhileLongNam1("Looooooooooooo" //indent:10 exp:10 + "oooooooooooong").getString(new FooWhileClass(), //indent:10 exp:10 diff --git a/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule452indentcontinuationlines/InputIndentationCorrectReturnAndParameter.java b/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule452indentcontinuationlines/InputIndentationCorrectReturnAndParameter.java index 0d101db2a74..b2436fa9b64 100644 --- a/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule452indentcontinuationlines/InputIndentationCorrectReturnAndParameter.java +++ b/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule452indentcontinuationlines/InputIndentationCorrectReturnAndParameter.java @@ -108,10 +108,10 @@ boolean fooMethodWithIf(String stringStringStringStringLooooongString, //indent: } //indent:6 exp:6 boolean fooReturn() { //indent:6 exp:6 - return conditionFirst("Loooooooooooooooooong", new //indent:8 exp:8 + return conditionFirst("Loooooooooooooooooong", new //indent:8 exp:8 SecondClassLongName("Loooooooooooooooooog"). //indent:12 exp:12 - getInteger(new FooReturnClass(), "Loooooooooooooooooog"), //indent:16 exp:>=12 - new InnerClassFoo()); //indent:19 exp:>=12 + getInteger(new FooReturnClass(), "Loooooooooooooooooog"), //indent:16 exp:>=12 + new InnerClassFoo()); //indent:19 exp:>=12 } //indent:6 exp:6 }; //indent:4 exp:4 } //indent:2 exp:2 diff --git a/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule452indentcontinuationlines/InputIndentationCorrectWhileDoWhileAndParameter.java b/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule452indentcontinuationlines/InputIndentationCorrectWhileDoWhileAndParameter.java index 854af600796..6c4bb492181 100644 --- a/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule452indentcontinuationlines/InputIndentationCorrectWhileDoWhileAndParameter.java +++ b/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule452indentcontinuationlines/InputIndentationCorrectWhileDoWhileAndParameter.java @@ -119,7 +119,7 @@ void fooMethodWithIf() { //indent:4 exp:4 conditionNoArg() || conditionNoArg()) {} //indent:14 exp:>=10 do { //indent:6 exp:6 - /* Do smth*/ //indent:8 exp:8 + /* Do smth*/ //indent:8 exp:8 } while (conditionSecond(10000000000.0, new //indent:6 exp:6 SecondWhileLongName("Looooooooooooo" //indent:10 exp:10 + "oooooooooooong").getString(new FooWhileClass(), //indent:10 exp:10 diff --git a/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule4841indentation/InputIndentationCorrectReturnAndParameter.java b/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule4841indentation/InputIndentationCorrectReturnAndParameter.java index 8a6e2a1b5c9..a17a70269dc 100644 --- a/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule4841indentation/InputIndentationCorrectReturnAndParameter.java +++ b/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule4841indentation/InputIndentationCorrectReturnAndParameter.java @@ -108,10 +108,10 @@ boolean fooMethodWithIf(String stringStringStringStringLooooongString, //indent: } //indent:6 exp:6 boolean fooReturn() { //indent:6 exp:6 - return conditionFirst("Loooooooooooooooooong", new //indent:8 exp:8 + return conditionFirst("Loooooooooooooooooong", new //indent:8 exp:8 SecondClassLongName("Loooooooooooooooooog"). //indent:12 exp:12 - getInteger(new FooReturnClass(), "Loooooooooooooooooog"), //indent:16 exp:>=12 - new InnerClassFoo()); //indent:19 exp:>=12 + getInteger(new FooReturnClass(), "Loooooooooooooooooog"), //indent:16 exp:>=12 + new InnerClassFoo()); //indent:19 exp:>=12 } //indent:6 exp:6 }; //indent:4 exp:4 } //indent:2 exp:2 diff --git a/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule4841indentation/InputIndentationCorrectWhileDoWhileAndParameter.java b/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule4841indentation/InputIndentationCorrectWhileDoWhileAndParameter.java index 655dd054a57..191dece07b8 100644 --- a/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule4841indentation/InputIndentationCorrectWhileDoWhileAndParameter.java +++ b/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule4841indentation/InputIndentationCorrectWhileDoWhileAndParameter.java @@ -119,7 +119,7 @@ void fooMethodWithIf() { //indent:4 exp:4 conditionNoArg() || conditionNoArg()) {} //indent:14 exp:>=10 do { //indent:6 exp:6 - /* Do smth*/ //indent:8 exp:8 + /* Do smth*/ //indent:8 exp:8 } while (conditionSecond(10000000000.0, new //indent:6 exp:6 SecondWhileLongName("Looooooooooooo" //indent:10 exp:10 + "oooooooooooong").getString(new FooWhileClass(), //indent:10 exp:10 diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/annotation/annotationlocation/InputAnnotationLocationIncorrect.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/annotation/annotationlocation/InputAnnotationLocationIncorrect.java index 0216067941e..e68238faa1c 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/annotation/annotationlocation/InputAnnotationLocationIncorrect.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/annotation/annotationlocation/InputAnnotationLocationIncorrect.java @@ -108,7 +108,7 @@ public void method1(@MyAnnotation3 @MyAnnotation2 Object param1) { @interface MyAnnotation1 { - String value();} + String value();} @interface MyAnnotation2 {} diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/avoidescapedunicodecharacters/InputAvoidEscapedUnicodeCharacters.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/avoidescapedunicodecharacters/InputAvoidEscapedUnicodeCharacters.java index f13bd870ba6..2e74dda8b11 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/avoidescapedunicodecharacters/InputAvoidEscapedUnicodeCharacters.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/avoidescapedunicodecharacters/InputAvoidEscapedUnicodeCharacters.java @@ -4,102 +4,102 @@ public class InputAvoidEscapedUnicodeCharacters { - private String unitAbbrev2 = "\u03bcs"; + private String unitAbbrev2 = "\u03bcs"; - private String unitAbbrev3 = "\u03bcs"; // Greek letter mu + private String unitAbbrev3 = "\u03bcs"; // Greek letter mu - private String unitAbbrev4 = "\u03bcs"; // Greek letter mu + private String unitAbbrev4 = "\u03bcs"; // Greek letter mu - public Object fooString() { - String unitAbbrev = "μs"; - String unitAbbrev2 = "\u03bcs"; - String unitAbbrev3 = "\u03bcs"; // Greek letter mu, "s" - String fakeUnicode = "asd\tsasd"; - String fakeUnicode2 = "\\u23\\u123i\\u"; - String content = null; - return "\ufeff" + content; // byte order mark - } + public Object fooString() { + String unitAbbrev = "μs"; + String unitAbbrev2 = "\u03bcs"; + String unitAbbrev3 = "\u03bcs"; // Greek letter mu, "s" + String fakeUnicode = "asd\tsasd"; + String fakeUnicode2 = "\\u23\\u123i\\u"; + String content = null; + return "\ufeff" + content; // byte order mark + } - public Object fooChar() { - char unitAbbrev2 = '\u03bc'; - char unitAbbrev3 = '\u03bc'; // Greek letter mu, "s" - char content = 0; - return '\ufeff' + content; // byte order mark - } + public Object fooChar() { + char unitAbbrev2 = '\u03bc'; + char unitAbbrev3 = '\u03bc'; // Greek letter mu, "s" + char content = 0; + return '\ufeff' + content; // byte order mark + } - public void multiplyString() { - String unitAbbrev2 = "asd\u03bcsasd"; - String unitAbbrev3 = "aBc\u03bcssdf\u03bc"; /* Greek letter mu, "s" */ - String unitAbbrev4 = "\u03bcaBc\u03bcssdf\u03bc"; - String allCharactersEscaped = "\u03bc\u03bc"; - } + public void multiplyString() { + String unitAbbrev2 = "asd\u03bcsasd"; + String unitAbbrev3 = "aBc\u03bcssdf\u03bc"; /* Greek letter mu, "s" */ + String unitAbbrev4 = "\u03bcaBc\u03bcssdf\u03bc"; + String allCharactersEscaped = "\u03bc\u03bc"; + } - private static String abbreviate(TimeUnit unit) { - switch (unit) { - case NANOSECONDS: - return "ns"; - case MICROSECONDS: - return "\u03bcs"; // μs - case MILLISECONDS: - return "ms"; - case SECONDS: - return "s"; - case MINUTES: - return "min"; - case HOURS: - return "h"; - case DAYS: - return "d"; - default: - throw new AssertionError(); - } - } + private static String abbreviate(TimeUnit unit) { + switch (unit) { + case NANOSECONDS: + return "ns"; + case MICROSECONDS: + return "\u03bcs"; // μs + case MILLISECONDS: + return "ms"; + case SECONDS: + return "s"; + case MINUTES: + return "min"; + case HOURS: + return "h"; + case DAYS: + return "d"; + default: + throw new AssertionError(); + } + } - static final String WHITESPACE_TABLE = "" - + "\u2002\u3000\r\u0085\u200A\u2005\u2000\u3000\\" - + "\u2029\u000B\u3000\u2008\u2003\u205F\u3000\u1680" - + "\u0009\u0020\u2006\u2001\u202F\u00A0\u000C\u2009" - + "\u3000\u2004\u3000\u3000\u2028\n\u2007\u3000"; + static final String WHITESPACE_TABLE = "" + + "\u2002\u3000\r\u0085\u200A\u2005\u2000\u3000\\" + + "\u2029\u000B\u3000\u2008\u2003\u205F\u3000\u1680" + + "\u0009\u0020\u2006\u2001\u202F\u00A0\u000C\u2009" + + "\u3000\u2004\u3000\u3000\u2028\n\u2007\u3000"; - public boolean matches(char c) { - switch (c) { - case '\t': - case '\n': - case '\013': - case '\f': - case '\r': - case ' ': - case '\u0085': // some comment - case '\u1680': - case '\u2028': - case '\u2029': - case '\u205f': - case '\u3000': - return true; - case '\u2007': - return false; - default: - return c >= '\u2000' && c <= '\u200a'; - } - } + public boolean matches(char c) { + switch (c) { + case '\t': + case '\n': + case '\013': + case '\f': + case '\r': + case ' ': + case '\u0085': // some comment + case '\u1680': + case '\u2028': + case '\u2029': + case '\u205f': + case '\u3000': + return true; + case '\u2007': + return false; + default: + return c >= '\u2000' && c <= '\u200a'; + } + } - private String unitAbbrev5 = "\u03bcs"; // comment is separated by space + tab - private String unitAbbrev6 = "\u03bcs"; // comment is separated by tab - private String unitAbbrev7 = "\u03bcs"; /* comment is separated by tab */ - private String unitAbbrev8 = "\u03bcs"; /* comment - has 2 lines */ - void foo() { - for (char c = '\u0000'; c < '\uffff'; c++) { - if (c == '\u001b' || // ESC - c == '\u2014') // Em-Dash? - continue; - } - } - private String unitAbbrev9 = "\u03bcs"; /* comment */ int i; + private String unitAbbrev5 = "\u03bcs"; // comment is separated by space + tab + private String unitAbbrev6 = "\u03bcs"; // comment is separated by tab + private String unitAbbrev7 = "\u03bcs"; /* comment is separated by tab */ + private String unitAbbrev8 = "\u03bcs"; /* comment + has 2 lines */ + void foo() { + for (char c = '\u0000'; c < '\uffff'; c++) { + if (c == '\u001b' || // ESC + c == '\u2014') // Em-Dash? + continue; + } + } + private String unitAbbrev9 = "\u03bcs"; /* comment */ int i; - private String notAUnicodeEscaped1 = "\\u1234"; + private String notAUnicodeEscaped1 = "\\u1234"; - private String notAUnicodeEscaped2 = "\\\\u1234"; + private String notAUnicodeEscaped2 = "\\\\u1234"; - private String onlyEscaped = "\\\u1234"; + private String onlyEscaped = "\\\u1234"; } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/blocks/emptyblock/InputEmptyBlockSemantic2.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/blocks/emptyblock/InputEmptyBlockSemantic2.java index 8aee797643d..84147e766b0 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/blocks/emptyblock/InputEmptyBlockSemantic2.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/blocks/emptyblock/InputEmptyBlockSemantic2.java @@ -10,18 +10,18 @@ class InputEmptyBlockSemantic2 { - public void fooMethod() - { - int a = 1; - if (a == 1) {} //is not OK - char[] s = {'1', '2'}; - int index = 2; - if (doSideEffect() == 1) {} //is not OK, - while ((a = index - 1) != 0) {} // is OK - for (; index < s.length && s[index] != 'x'; index++) {} // is OK - if (a == 1) {} else {System.identityHashCode("a");} // is not OK - switch (a) {} //warn - switch (a) { //ok + public void fooMethod() + { + int a = 1; + if (a == 1) {} //is not OK + char[] s = {'1', '2'}; + int index = 2; + if (doSideEffect() == 1) {} //is not OK, + while ((a = index - 1) != 0) {} // is OK + for (; index < s.length && s[index] != 'x'; index++) {} // is OK + if (a == 1) {} else {System.identityHashCode("a");} // is not OK + switch (a) {} //warn + switch (a) { //ok case 1: a = 2; case 2: @@ -29,10 +29,10 @@ public void fooMethod() default: a = 0; } - } + } - public int doSideEffect() - { - return 1; - } + public int doSideEffect() + { + return 1; + } } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/blocks/leftcurly/InputLeftCurlyDefault3.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/blocks/leftcurly/InputLeftCurlyDefault3.java index 7cc6ca934b5..c216d53e81b 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/blocks/leftcurly/InputLeftCurlyDefault3.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/blocks/leftcurly/InputLeftCurlyDefault3.java @@ -104,10 +104,10 @@ void method2() */ class FooCtor { - int i; - public FooCtor() + int i; + public FooCtor() { - i = 1; + i = 1; }} /** @@ -116,9 +116,9 @@ public FooCtor() */ class FooMethod { - public void fooMethod() + public void fooMethod() { - int i = 1; + int i = 1; }} /** @@ -127,12 +127,12 @@ public void fooMethod() */ class FooInner { - class InnerFoo + class InnerFoo { - public void fooInnerMethod () + public void fooInnerMethod () { - } + } }} /** diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/blocks/leftcurly/InputLeftCurlyLineBreakAfter.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/blocks/leftcurly/InputLeftCurlyLineBreakAfter.java index 34065bae0f8..39b1116a53f 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/blocks/leftcurly/InputLeftCurlyLineBreakAfter.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/blocks/leftcurly/InputLeftCurlyLineBreakAfter.java @@ -45,7 +45,7 @@ else if (x < 0) { for (int k = 0; k < 1; k++) { String innerBlockVariable = ""; } for (int k = 0; k < 1; k++) {} - return a; + return a; } static { int x = 1; } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/blocks/rightcurly/InputRightCurlyLeft.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/blocks/rightcurly/InputRightCurlyLeft.java index 06e6f3d9746..0f6b094b554 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/blocks/rightcurly/InputRightCurlyLeft.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/blocks/rightcurly/InputRightCurlyLeft.java @@ -104,10 +104,10 @@ void method2() */ class FooCtor { - int i; - public FooCtor() + int i; + public FooCtor() { - i = 1; + i = 1; }} /** @@ -116,9 +116,9 @@ public FooCtor() */ class FooMethod { - public void fooMethod() + public void fooMethod() { - int i = 1; + int i = 1; }} /** @@ -127,12 +127,12 @@ public void fooMethod() */ class FooInner { - class InnerFoo + class InnerFoo { - public void fooInnerMethod () + public void fooInnerMethod () { - } + } }} /** diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/blocks/rightcurly/InputRightCurlyLineBreakBefore.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/blocks/rightcurly/InputRightCurlyLineBreakBefore.java index 902b5348aad..d6b11431ee1 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/blocks/rightcurly/InputRightCurlyLineBreakBefore.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/blocks/rightcurly/InputRightCurlyLineBreakBefore.java @@ -41,7 +41,7 @@ int foo() throws InterruptedException for (int k = 0; k < 1; k++) { String innerBlockVariable = ""; } for (int k = 0; k < 1; k++) {} - return a; + return a; } static { int x = 1; } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/equalsavoidnull/InputEqualsAvoidNull.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/equalsavoidnull/InputEqualsAvoidNull.java index 59e3f1a5f7a..7d7ce897358 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/equalsavoidnull/InputEqualsAvoidNull.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/equalsavoidnull/InputEqualsAvoidNull.java @@ -194,9 +194,9 @@ public void noFlagForBoth() { class InputEqualsAvoidNullOutter { public class InputEqualsAvoidNullInner { - public boolean equals(Object o) { - return true; - } + public boolean equals(Object o) { + return true; + } } } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/illegalcatch/InputIllegalCatch2.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/illegalcatch/InputIllegalCatch2.java index e0455d11ef7..1e82b043aa0 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/illegalcatch/InputIllegalCatch2.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/illegalcatch/InputIllegalCatch2.java @@ -3,16 +3,16 @@ public class InputIllegalCatch2 { public void foo() throws OneMoreException { try { - foo1(); + foo1(); } catch (RuntimeException | SQLException e) {} try { - foo1(); + foo1(); } catch (RuntimeException | SQLException | OneMoreException e) {} try { - foo1(); + foo1(); } catch (OneMoreException | RuntimeException | SQLException e) {} try { - foo1(); + foo1(); } catch (OneMoreException | SQLException | RuntimeException e) {} } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/illegaltype/InputIllegalTypeSimilarClassName.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/illegaltype/InputIllegalTypeSimilarClassName.java index 704a9e92fbe..75ea4d48568 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/illegaltype/InputIllegalTypeSimilarClassName.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/illegaltype/InputIllegalTypeSimilarClassName.java @@ -1,8 +1,8 @@ package com.puppycrawl.tools.checkstyle.checks.coding.illegaltype; public class InputIllegalTypeSimilarClassName { - private TreeSet example; + private TreeSet example; - private static class TreeSet { - } + private static class TreeSet { + } } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/innerassignment/InputInnerAssignment.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/innerassignment/InputInnerAssignment.java index 99267b6dbf4..62eec62af14 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/innerassignment/InputInnerAssignment.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/innerassignment/InputInnerAssignment.java @@ -97,7 +97,7 @@ public java.util.Collection allParams() { // Taken from JDK7 java.lang.Package src code. private static Manifest loadManifest(String fn) { try (FileInputStream fis = new FileInputStream(fn); - JarInputStream jis = new JarInputStream(fis, false)) + JarInputStream jis = new JarInputStream(fis, false)) { return jis.getManifest(); } catch (IOException e) diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/magicnumber/InputMagicNumber.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/magicnumber/InputMagicNumber.java index b2f1bfcb44f..ba38dc688c3 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/magicnumber/InputMagicNumber.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/magicnumber/InputMagicNumber.java @@ -201,13 +201,13 @@ public void anotherNegative2() { class TestMethodCall { - public TestMethodCall(int x){ + public TestMethodCall(int x){ } - public void method2() { + public void method2() { final TestMethodCall dummyObject = new TestMethodCall(62); - } + } } class Binary { diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/magicnumber/InputMagicNumberIntMethodAnnotation.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/magicnumber/InputMagicNumberIntMethodAnnotation.java index d2a005b61e6..ee41ecc1eef 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/magicnumber/InputMagicNumberIntMethodAnnotation.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/magicnumber/InputMagicNumberIntMethodAnnotation.java @@ -8,5 +8,5 @@ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface InputMagicNumberIntMethodAnnotation { - int value(); + int value(); } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/noclone/InputNoClone.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/noclone/InputNoClone.java index 542cb3c4881..33d66cded6e 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/noclone/InputNoClone.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/noclone/InputNoClone.java @@ -77,7 +77,7 @@ void someMethod(java.util.List> l) * @return a cloned Object? */ public static Object clone(Object o) { - return null; + return null; } } @@ -90,7 +90,7 @@ class AnotherClass { * @return a cloned type? */ public T clone(T t) { - return null; + return null; } } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/requirethis/InputRequireThisSimple.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/requirethis/InputRequireThisSimple.java index d39626aa995..85ad4e35e06 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/requirethis/InputRequireThisSimple.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/requirethis/InputRequireThisSimple.java @@ -1,7 +1,7 @@ package com.puppycrawl.tools.checkstyle.checks.coding.requirethis; public class InputRequireThisSimple { - private final int number = 1; + private final int number = 1; public int check() { int sum = number; @@ -10,6 +10,6 @@ public int check() { } private int other() { - return 0; + return 0; } } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/superclone/InputSuperCloneInnerAndWithArguments.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/superclone/InputSuperCloneInnerAndWithArguments.java index 9b531a77842..4f4b2d16f38 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/superclone/InputSuperCloneInnerAndWithArguments.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/superclone/InputSuperCloneInnerAndWithArguments.java @@ -77,7 +77,7 @@ void someMethod(java.util.List> l) * @return a cloned Object? */ public static Object clone(Object o) { - return null; + return null; } } @@ -90,7 +90,7 @@ class AnotherClass { * @return a cloned type? */ public T clone(T t) { - return null; + return null; } } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/design/designforextension/InputDesignForExtension.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/design/designforextension/InputDesignForExtension.java index c1b412e3e05..28ee2644be6 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/design/designforextension/InputDesignForExtension.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/design/designforextension/InputDesignForExtension.java @@ -50,12 +50,12 @@ protected void doh() public final void aFinalMethod() { - System.identityHashCode("no way to override"); + System.identityHashCode("no way to override"); } public static void aStaticMethod() { - System.identityHashCode("no way to override"); + System.identityHashCode("no way to override"); } // tries to trigger bug #884035 @@ -79,27 +79,27 @@ public final class aFinalClass { public void someMethod() { - System.identityHashCode("nonempty and overriding is possible"); + System.identityHashCode("nonempty and overriding is possible"); } } public class nonFinalClass { - //private ctor - private nonFinalClass(){} + //private ctor + private nonFinalClass(){} public void someMethod() { - System.identityHashCode("nonempty and overriding is possible"); + System.identityHashCode("nonempty and overriding is possible"); } } public class anotherNonFinalClass { - //nonPrivate ctor - public anotherNonFinalClass(){} + //nonPrivate ctor + public anotherNonFinalClass(){} public void someMethod() { - System.identityHashCode("nonempty and overriding is possible"); + System.identityHashCode("nonempty and overriding is possible"); } } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/design/finalclass/InputFinalClass.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/design/finalclass/InputFinalClass.java index 32657b08141..879b21581be 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/design/finalclass/InputFinalClass.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/design/finalclass/InputFinalClass.java @@ -40,27 +40,27 @@ abstract class Operation abstract double eval(double a, double b); public static final Operation PLUS = - new Operation("+") - { - double eval(double a, double b) - { - return a + b; - } - }; +new Operation("+") +{ + double eval(double a, double b) + { +return a + b; + } +}; public static final Operation MINUS = - new Operation("-") - { - double eval(double a, double b) - { - return a - b; - } - }; +new Operation("-") +{ + double eval(double a, double b) + { +return a - b; + } +}; private String _name; private Operation(String name) { - this._name = name; +this._name = name; } } @@ -76,27 +76,27 @@ abstract class Operation2 implements Evaluable { public static final Operation2 PLUS = - new Operation2("+") - { - public double eval(double a, double b) - { - return a + b; - } - }; +new Operation2("+") +{ + public double eval(double a, double b) + { +return a + b; + } +}; public static final Operation2 MINUS = - new Operation2("-") - { - public double eval(double a, double b) - { - return a - b; - } - }; +new Operation2("-") +{ + public double eval(double a, double b) + { +return a - b; + } +}; private String _name; private Operation2(String name) { - this._name = name; +this._name = name; } } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/design/hideutilityclassconstructor/InputHideUtilityClassConstructorDesignForExtension.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/design/hideutilityclassconstructor/InputHideUtilityClassConstructorDesignForExtension.java index 072c2cd483f..3256c5fb682 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/design/hideutilityclassconstructor/InputHideUtilityClassConstructorDesignForExtension.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/design/hideutilityclassconstructor/InputHideUtilityClassConstructorDesignForExtension.java @@ -50,12 +50,12 @@ protected void doh() public final void aFinalMethod() { - System.identityHashCode("no way to override"); + System.identityHashCode("no way to override"); } public static void aStaticMethod() { - System.identityHashCode("no way to override"); + System.identityHashCode("no way to override"); } // tries to trigger bug #884035 @@ -79,27 +79,27 @@ public final class aFinalClass { public void someMethod() { - System.identityHashCode("nonempty and overriding is possible"); + System.identityHashCode("nonempty and overriding is possible"); } } public class nonFinalClass { - //private ctor - private nonFinalClass(){} + //private ctor + private nonFinalClass(){} public void someMethod() { - System.identityHashCode("nonempty and overriding is possible"); + System.identityHashCode("nonempty and overriding is possible"); } } public class anotherNonFinalClass { - //nonPrivate ctor - public anotherNonFinalClass(){} + //nonPrivate ctor + public anotherNonFinalClass(){} public void someMethod() { - System.identityHashCode("nonempty and overriding is possible"); + System.identityHashCode("nonempty and overriding is possible"); } } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/design/hideutilityclassconstructor/InputHideUtilityClassConstructorNonUtilityClass.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/design/hideutilityclassconstructor/InputHideUtilityClassConstructorNonUtilityClass.java index 56fdc48acb8..c77832d79cd 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/design/hideutilityclassconstructor/InputHideUtilityClassConstructorNonUtilityClass.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/design/hideutilityclassconstructor/InputHideUtilityClassConstructorNonUtilityClass.java @@ -11,11 +11,11 @@ public class InputHideUtilityClassConstructorNonUtilityClass extends JPanel /** HideUtilityClassConstructorCheck should not report this */ public InputHideUtilityClassConstructorNonUtilityClass() { - this.setPreferredSize(new Dimension(100, 100)); +this.setPreferredSize(new Dimension(100, 100)); } public static void utilMethod() { - System.identityHashCode("I'm a utility method"); +System.identityHashCode("I'm a utility method"); } } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/atclauseorder/InputAtclauseOrderIncorrect.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/atclauseorder/InputAtclauseOrderIncorrect.java index 77d2de3fc11..1cb1bab5897 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/atclauseorder/InputAtclauseOrderIncorrect.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/atclauseorder/InputAtclauseOrderIncorrect.java @@ -13,7 +13,7 @@ */ class InputAtclauseOrderIncorrect implements Serializable { - /** + /** * The client's first name. * @serial */ diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadocmethod/InputJavadocMethodSetterGetter.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadocmethod/InputJavadocMethodSetterGetter.java index 009c3c6c4f9..52b1ce058c5 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadocmethod/InputJavadocMethodSetterGetter.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadocmethod/InputJavadocMethodSetterGetter.java @@ -36,7 +36,7 @@ public int getCost1(int forMe) public int getCost2() { - mNumber = 4; + mNumber = 4; return 666; } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadocparagraph/InputJavadocParagraphCorrect.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadocparagraph/InputJavadocParagraphCorrect.java index e2f965853bc..2c7cbde2602 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadocparagraph/InputJavadocParagraphCorrect.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadocparagraph/InputJavadocParagraphCorrect.java @@ -79,7 +79,7 @@ class InnerInputJavadocParagraphCorrect { InnerInputJavadocParagraphCorrect anon = new InnerInputJavadocParagraphCorrect() { - /** + /** * Some Javadoc. * *

Some Javadoc. diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadocparagraph/InputJavadocParagraphIncorrect.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadocparagraph/InputJavadocParagraphIncorrect.java index 0087fea479c..af2d32d63bb 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadocparagraph/InputJavadocParagraphIncorrect.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadocparagraph/InputJavadocParagraphIncorrect.java @@ -57,7 +57,7 @@ class InnerInputJavadocParagraphIncorrect { InnerInputJavadocParagraphIncorrect anon = new InnerInputJavadocParagraphIncorrect() { - /** + /** *

Some Javadoc. //WARN * * Some Javadoc. diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadoctagcontinuationindentation/InputJavadocTagContinuationIndentation.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadoctagcontinuationindentation/InputJavadocTagContinuationIndentation.java index d0e38d1eeac..e5be41ab58b 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadoctagcontinuationindentation/InputJavadocTagContinuationIndentation.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadoctagcontinuationindentation/InputJavadocTagContinuationIndentation.java @@ -16,7 +16,7 @@ */ class InputJavadocTagContinuationIndentation implements Serializable { - /** + /** * The client's first name. * @serial Some javadoc. * Some javadoc. diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadoctagcontinuationindentation/InputJavadocTagContinuationIndentationOffset3.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadoctagcontinuationindentation/InputJavadocTagContinuationIndentationOffset3.java index e170b054221..06c8d2f9e80 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadoctagcontinuationindentation/InputJavadocTagContinuationIndentationOffset3.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/javadoctagcontinuationindentation/InputJavadocTagContinuationIndentationOffset3.java @@ -13,10 +13,10 @@ * Some javadoc. */ class InputJavadocTagContinuationIndentationOffset3 { - /** + /** * The client's first name. * @serial Some javadoc. - * Some javadoc. // warn + * Some javadoc. // warn */ private String fFirstName; diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/missingjavadocmethod/InputMissingJavadocMethodSetterGetter.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/missingjavadocmethod/InputMissingJavadocMethodSetterGetter.java index 27ec6d60384..93fa455e48c 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/missingjavadocmethod/InputMissingJavadocMethodSetterGetter.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/missingjavadocmethod/InputMissingJavadocMethodSetterGetter.java @@ -36,7 +36,7 @@ public int getCost1(int forMe) public int getCost2() { - mNumber = 4; + mNumber = 4; return 666; } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/missingjavadocmethod/InputMissingJavadocMethodSmallMethods.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/missingjavadocmethod/InputMissingJavadocMethodSmallMethods.java index 0d7dfc0f5cd..ca5127d88cf 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/missingjavadocmethod/InputMissingJavadocMethodSmallMethods.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/missingjavadocmethod/InputMissingJavadocMethodSmallMethods.java @@ -23,7 +23,7 @@ int foo1() */ String foo2() { - return "Fooooooooooooooo" + return "Fooooooooooooooo" + "ooooo" + "ooo"; } @@ -86,8 +86,8 @@ String foo10() protected String foo11() { return "Fooooo" - + "ooo" - + "ooooooo" + + "ooo" + + "ooooooo" + "ooooo" + "ooo"; } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/nonemptyatclausedescription/InputNonEmptyAtclauseDescription.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/nonemptyatclausedescription/InputNonEmptyAtclauseDescription.java index 9cfa6203ac4..cd790e922c1 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/nonemptyatclausedescription/InputNonEmptyAtclauseDescription.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/nonemptyatclausedescription/InputNonEmptyAtclauseDescription.java @@ -1,126 +1,126 @@ package com.puppycrawl.tools.checkstyle.checks.javadoc.nonemptyatclausedescription; class InputNonEmptyAtclauseDescription { - /** - * Some javadoc. - * @param a Some javadoc. - * @param b Some javadoc. - */ - public InputNonEmptyAtclauseDescription(String a, int b) - { + /** + * Some javadoc. + * @param a Some javadoc. + * @param b Some javadoc. + */ + public InputNonEmptyAtclauseDescription(String a, int b) + { - } + } - /** - * Some javadoc. - * @param a Some javadoc. - * @deprecated Some javadoc. - */ - public InputNonEmptyAtclauseDescription(String a) - { + /** + * Some javadoc. + * @param a Some javadoc. + * @deprecated Some javadoc. + */ + public InputNonEmptyAtclauseDescription(String a) + { - } + } - /** - * Some javadoc. - * @param a - * @param b - * @param c - */ - public InputNonEmptyAtclauseDescription(String a, int b, double c) - { + /** + * Some javadoc. + * @param a + * @param b + * @param c + */ + public InputNonEmptyAtclauseDescription(String a, int b, double c) + { - } + } - /** - * - * @param a - * @param e - * @deprecated - */ - public InputNonEmptyAtclauseDescription(String a, boolean e) - { + /** + * + * @param a + * @param e + * @deprecated + */ + public InputNonEmptyAtclauseDescription(String a, boolean e) + { - } + } - /** - * Some javadoc - * @param a Some javadoc - * @param b Some javadoc - * @param c Some javadoc - * @return Some javadoc - * @throws Exception Some javadoc - * @deprecated Some javadoc - */ - public int foo1(String a, int b, double c) throws Exception - { - return 1; - } + /** + * Some javadoc + * @param a Some javadoc + * @param b Some javadoc + * @param c Some javadoc + * @return Some javadoc + * @throws Exception Some javadoc + * @deprecated Some javadoc + */ + public int foo1(String a, int b, double c) throws Exception + { + return 1; + } - /** - * - * @param a Some javadoc - * @param b Some javadoc - * @param c Some javadoc - * @return Some javadoc - * @throws Exception Some javadoc - */ - public int foo2(String a, int b, double c) throws Exception - { - return 1; - } + /** + * + * @param a Some javadoc + * @param b Some javadoc + * @param c Some javadoc + * @return Some javadoc + * @throws Exception Some javadoc + */ + public int foo2(String a, int b, double c) throws Exception + { + return 1; + } - /** - * - * @param a - * @param b - * @param c - * @deprecated - * @throws Exception - * @deprecated - */ - public int foo3(String a, int b, double c) throws Exception - { - return 1; - } + /** + * + * @param a + * @param b + * @param c + * @deprecated + * @throws Exception + * @deprecated + */ + public int foo3(String a, int b, double c) throws Exception + { + return 1; + } - /** - * - * @param a - * @param b - * @param c - * @deprecated - * @throws Exception - */ - public int foo4(String a, int b, double c) throws Exception - { - return 1; - } + /** + * + * @param a + * @param b + * @param c + * @deprecated + * @throws Exception + */ + public int foo4(String a, int b, double c) throws Exception + { + return 1; + } - /** - * Some javadoc - * @param a Some javadoc - * @param b Some javadoc - * @param c Some javadoc - * @return Some javadoc - * @exception Exception Some javadoc - * @deprecated Some javadoc - */ - public int foo5(String a, int b, double c) throws Exception - { - return 1; - } + /** + * Some javadoc + * @param a Some javadoc + * @param b Some javadoc + * @param c Some javadoc + * @return Some javadoc + * @exception Exception Some javadoc + * @deprecated Some javadoc + */ + public int foo5(String a, int b, double c) throws Exception + { + return 1; + } - /** - * - * @param a Some javadoc - * @param b Some javadoc - * @param c Some javadoc - * @return Some javadoc - * @exception Exception - */ - public int foo6(String a, int b, double c) throws Exception - { - return 1; - } + /** + * + * @param a Some javadoc + * @param b Some javadoc + * @param c Some javadoc + * @return Some javadoc + * @exception Exception + */ + public int foo6(String a, int b, double c) throws Exception + { + return 1; + } } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/singlelinejavadoc/InputSingleLineJavadoc.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/singlelinejavadoc/InputSingleLineJavadoc.java index c2b4f40db31..c99b9b0aab1 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/singlelinejavadoc/InputSingleLineJavadoc.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/singlelinejavadoc/InputSingleLineJavadoc.java @@ -1,7 +1,7 @@ package com.puppycrawl.tools.checkstyle.checks.javadoc.singlelinejavadoc; class InputSingleLineJavadoc { - /** As of JDK 1.1, replaced by {@link #setBounds(int,int,int,int)} */ + /** As of JDK 1.1, replaced by {@link #setBounds(int,int,int,int)} */ void foo() {} /** diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/writetag/InputWriteTag.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/writetag/InputWriteTag.java index de87fe0c2d7..2d6e21903b9 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/writetag/InputWriteTag.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/writetag/InputWriteTag.java @@ -15,12 +15,12 @@ */ class InputWriteTag { - /** - * @todo Add a constructor comment - */ - public InputWriteTag() - { - } + /** + * @todo Add a constructor comment + */ + public InputWriteTag() + { + } public void method() { diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/modifier/redundantmodifier/InputRedundantModifierFinalInInterface.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/modifier/redundantmodifier/InputRedundantModifierFinalInInterface.java index 57a34086256..76c3331d7c1 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/modifier/redundantmodifier/InputRedundantModifierFinalInInterface.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/modifier/redundantmodifier/InputRedundantModifierFinalInInterface.java @@ -2,15 +2,15 @@ public interface InputRedundantModifierFinalInInterface { - final int k = 5; // violation + final int k = 5; // violation default int defaultMethod(final int x) { - if (k == 5) { - final int t = 24; //No violation here! - for (; ;) { - final String s = "some"; //No violation here! - } - } + if (k == 5) { + final int t = 24; //No violation here! + for (; ;) { + final String s = "some"; //No violation here! + } + } final int square = x * x; //No violation here! return square; } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/catchparametername/InputCatchParameterNameSimple.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/catchparametername/InputCatchParameterNameSimple.java index 69cacf5ee3f..f4d4bf21389 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/catchparametername/InputCatchParameterNameSimple.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/catchparametername/InputCatchParameterNameSimple.java @@ -16,7 +16,7 @@ final class InputCatchParameterNameSimple { // Long line ---------------------------------------------------------------- - // Contains a tab -> <- + // Contains a tab -> <- // Contains trailing whitespace -> // Name format tests @@ -142,8 +142,8 @@ void ALL_UPPERCASE_METHOD() private static final int BAD__NAME = 3; // A very, very long line that is OK because it matches the regexp "^.*is OK.*regexp.*$" - // long line that has a tab -> <- and would be OK if tab counted as 1 char - // tabs that count as one char because of their position -> <- -> <-, OK + // long line that has a tab -> <- and would be OK if tab counted as 1 char + // tabs that count as one char because of their position -> <- -> <-, OK /** some lines to test the error column after tabs */ void errorColumnAfterTabs() @@ -151,11 +151,11 @@ void errorColumnAfterTabs() // with tab-width 8 all statements below start at the same column, // with different combinations of ' ' and '\t' before the statement int tab0 =1; - int tab1 =1; - int tab2 =1; - int tab3 =1; - int tab4 =1; - int tab5 =1; + int tab1 =1; + int tab2 =1; + int tab3 =1; + int tab4 =1; + int tab5 =1; } // MEMME: diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/classtypeparametername/InputClassTypeParameterName.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/classtypeparametername/InputClassTypeParameterName.java index 101bbc8e88e..ac4d9e0b2dd 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/classtypeparametername/InputClassTypeParameterName.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/classtypeparametername/InputClassTypeParameterName.java @@ -13,20 +13,20 @@ void foo(int i) { class Other { foo getOne() { - return null;//comment + return null;//comment } /*comment*/Tfo$o2T getTwo(Tfo$o2T a) { - return null; + return null; } foo getShadow() { - return null; + return null; } static class Junk { <_fo extends foo> void getMoreFoo() { - } + } } } @@ -35,8 +35,8 @@ class MoreOther { void getMore() { new Other() { void getMoreFoo() { - } - }; + } + }; // Other o = new Other() { // void getMoreFoo() { diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/constantname/InputConstantNameSimple.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/constantname/InputConstantNameSimple.java index ce3f7a93c38..fd9b667298b 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/constantname/InputConstantNameSimple.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/constantname/InputConstantNameSimple.java @@ -16,7 +16,7 @@ final class InputConstantNameSimple { // Long line ---------------------------------------------------------------- - // Contains a tab -> <- + // Contains a tab -> <- // Contains trailing whitespace -> // Name format tests @@ -142,8 +142,8 @@ void ALL_UPPERCASE_METHOD() private static final int BAD__NAME = 3; // A very, very long line that is OK because it matches the regexp "^.*is OK.*regexp.*$" - // long line that has a tab -> <- and would be OK if tab counted as 1 char - // tabs that count as one char because of their position -> <- -> <-, OK + // long line that has a tab -> <- and would be OK if tab counted as 1 char + // tabs that count as one char because of their position -> <- -> <-, OK /** some lines to test the error column after tabs */ void errorColumnAfterTabs() @@ -151,11 +151,11 @@ void errorColumnAfterTabs() // with tab-width 8 all statements below start at the same column, // with different combinations of ' ' and '\t' before the statement int tab0 =1; - int tab1 =1; - int tab2 =1; - int tab3 =1; - int tab4 =1; - int tab5 =1; + int tab1 =1; + int tab2 =1; + int tab3 =1; + int tab4 =1; + int tab5 =1; } // MEMME: diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/interfacetypeparametername/InputInterfaceTypeParameterName.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/interfacetypeparametername/InputInterfaceTypeParameterName.java index 689fc99156d..2488627146d 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/interfacetypeparametername/InputInterfaceTypeParameterName.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/interfacetypeparametername/InputInterfaceTypeParameterName.java @@ -13,20 +13,20 @@ void foo(int i) { class Other { foo getOne() { - return null;//comment + return null;//comment } /*comment*/Tfo$o2T getTwo(Tfo$o2T a) { - return null; + return null; } foo getShadow() { - return null; + return null; } static class Junk { <_fo extends foo> void getMoreFoo() { - } + } } } @@ -35,8 +35,8 @@ class MoreOther { void getMore() { new Other() { void getMoreFoo() { - } - }; + } + }; // Other o = new Other() { // void getMoreFoo() { diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/localfinalvariablename/InputLocalFinalVariableName.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/localfinalvariablename/InputLocalFinalVariableName.java index 9726b163f27..e3b3f349f2e 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/localfinalvariablename/InputLocalFinalVariableName.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/localfinalvariablename/InputLocalFinalVariableName.java @@ -16,7 +16,7 @@ final class InputLocalFinalVariableName { // Long line ---------------------------------------------------------------- - // Contains a tab -> <- + // Contains a tab -> <- // Contains trailing whitespace -> // Name format tests @@ -142,8 +142,8 @@ void ALL_UPPERCASE_METHOD() private static final int BAD__NAME = 3; // A very, very long line that is OK because it matches the regexp "^.*is OK.*regexp.*$" - // long line that has a tab -> <- and would be OK if tab counted as 1 char - // tabs that count as one char because of their position -> <- -> <-, OK + // long line that has a tab -> <- and would be OK if tab counted as 1 char + // tabs that count as one char because of their position -> <- -> <-, OK /** some lines to test the error column after tabs */ void errorColumnAfterTabs() @@ -151,11 +151,11 @@ void errorColumnAfterTabs() // with tab-width 8 all statements below start at the same column, // with different combinations of ' ' and '\t' before the statement int tab0 =1; - int tab1 =1; - int tab2 =1; - int tab3 =1; - int tab4 =1; - int tab5 =1; + int tab1 =1; + int tab2 =1; + int tab3 =1; + int tab4 =1; + int tab5 =1; } // MEMME: diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/localvariablename/InputLocalVariableName.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/localvariablename/InputLocalVariableName.java index 18b75b00e12..1b8506e4a37 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/localvariablename/InputLocalVariableName.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/localvariablename/InputLocalVariableName.java @@ -16,7 +16,7 @@ final class InputLocalVariableName { // Long line ---------------------------------------------------------------- - // Contains a tab -> <- + // Contains a tab -> <- // Contains trailing whitespace -> // Name format tests @@ -142,8 +142,8 @@ void ALL_UPPERCASE_METHOD() private static final int BAD__NAME = 3; // A very, very long line that is OK because it matches the regexp "^.*is OK.*regexp.*$" - // long line that has a tab -> <- and would be OK if tab counted as 1 char - // tabs that count as one char because of their position -> <- -> <-, OK + // long line that has a tab -> <- and would be OK if tab counted as 1 char + // tabs that count as one char because of their position -> <- -> <-, OK /** some lines to test the error column after tabs */ void errorColumnAfterTabs() @@ -151,11 +151,11 @@ void errorColumnAfterTabs() // with tab-width 8 all statements below start at the same column, // with different combinations of ' ' and '\t' before the statement int tab0 =1; - int tab1 =1; - int tab2 =1; - int tab3 =1; - int tab4 =1; - int tab5 =1; + int tab1 =1; + int tab2 =1; + int tab3 =1; + int tab4 =1; + int tab5 =1; } // MEMME: diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/localvariablename/InputLocalVariableNameOneCharInitVarName.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/localvariablename/InputLocalVariableNameOneCharInitVarName.java index f7393e3e762..be1aec0981b 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/localvariablename/InputLocalVariableNameOneCharInitVarName.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/localvariablename/InputLocalVariableNameOneCharInitVarName.java @@ -10,41 +10,41 @@ class InputLocalVariableNameOneCharInitVarName { - public void fooMethod() - { - for(int i = 1; i <10; i++) { - int j = 1; - } + public void fooMethod() + { + for(int i = 1; i <10; i++) { + int j = 1; + } for(int K = 1; K < 10; K++) { int A = 1; } - int i = 0; + int i = 0; for(int index = 1; index < 10; index++) { - //come code - } + //come code + } for(int Index = 1; Index < 10; Index++) { - //come code - } + //come code + } int index = 1; - for(; index < 10; index++) { - //come code - } + for(; index < 10; index++) { + //come code + } - for(; i < 12; i++) { - //come code - } + for(; i < 12; i++) { + //come code + } - Map map = new HashMap(); + Map map = new HashMap(); - for (Map.Entry e : map.entrySet()) { - String a = ""; - } - for (Map.Entry E : map.entrySet()) { - String B = ""; - } - } + for (Map.Entry e : map.entrySet()) { + String a = ""; + } + for (Map.Entry E : map.entrySet()) { + String B = ""; + } + } } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/membername/InputMemberNameSimple.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/membername/InputMemberNameSimple.java index 5b0895a1333..d24addbe741 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/membername/InputMemberNameSimple.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/membername/InputMemberNameSimple.java @@ -16,7 +16,7 @@ final class InputMemberNameSimple { // Long line ---------------------------------------------------------------- - // Contains a tab -> <- + // Contains a tab -> <- // Contains trailing whitespace -> // Name format tests @@ -142,8 +142,8 @@ void ALL_UPPERCASE_METHOD() private static final int BAD__NAME = 3; // A very, very long line that is OK because it matches the regexp "^.*is OK.*regexp.*$" - // long line that has a tab -> <- and would be OK if tab counted as 1 char - // tabs that count as one char because of their position -> <- -> <-, OK + // long line that has a tab -> <- and would be OK if tab counted as 1 char + // tabs that count as one char because of their position -> <- -> <-, OK /** some lines to test the error column after tabs */ void errorColumnAfterTabs() @@ -151,11 +151,11 @@ void errorColumnAfterTabs() // with tab-width 8 all statements below start at the same column, // with different combinations of ' ' and '\t' before the statement int tab0 =1; - int tab1 =1; - int tab2 =1; - int tab3 =1; - int tab4 =1; - int tab5 =1; + int tab1 =1; + int tab2 =1; + int tab3 =1; + int tab4 =1; + int tab5 =1; } // MEMME: diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/methodname/InputMethodNameEqualClassName.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/methodname/InputMethodNameEqualClassName.java index 281ad9f11b3..2cfa7ff34ef 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/methodname/InputMethodNameEqualClassName.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/methodname/InputMethodNameEqualClassName.java @@ -8,7 +8,7 @@ */ public class InputMethodNameEqualClassName { - //illegal name + //illegal name public int InputMethodNameEqualClassName() { return 0; } @@ -19,38 +19,38 @@ private int PRIVATEInputMethodNameEqualClassName() { } class Inner { - //illegal name + //illegal name public int Inner() { - return 0; - } + return 0; + } - //OK name - name of the outter class's ctor + //OK name - name of the outter class's ctor public int InputMethodNameEqualClassName() { - return 0; - } - } + return 0; + } + } - public void anotherMethod() { - new InputMethodNameEqualClassName() { + public void anotherMethod() { + new InputMethodNameEqualClassName() { - //illegal name + //illegal name public int InputMethodNameEqualClassName() { - return 1; - } - }; - } + return 1; + } + }; + } } interface SweetInterface { - //illegal name + //illegal name int SweetInterface(); } class Outer { - //illegal name + //illegal name public void Outer() { - } + } } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/methodname/InputMethodNameSimple.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/methodname/InputMethodNameSimple.java index d573845f7a0..3c9db240da5 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/methodname/InputMethodNameSimple.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/methodname/InputMethodNameSimple.java @@ -16,7 +16,7 @@ final class InputMethodNameSimple { // Long line ---------------------------------------------------------------- - // Contains a tab -> <- + // Contains a tab -> <- // Contains trailing whitespace -> // Name format tests @@ -142,8 +142,8 @@ void ALL_UPPERCASE_METHOD() private static final int BAD__NAME = 3; // A very, very long line that is OK because it matches the regexp "^.*is OK.*regexp.*$" - // long line that has a tab -> <- and would be OK if tab counted as 1 char - // tabs that count as one char because of their position -> <- -> <-, OK + // long line that has a tab -> <- and would be OK if tab counted as 1 char + // tabs that count as one char because of their position -> <- -> <-, OK /** some lines to test the error column after tabs */ void errorColumnAfterTabs() @@ -151,11 +151,11 @@ void errorColumnAfterTabs() // with tab-width 8 all statements below start at the same column, // with different combinations of ' ' and '\t' before the statement int tab0 =1; - int tab1 =1; - int tab2 =1; - int tab3 =1; - int tab4 =1; - int tab5 =1; + int tab1 =1; + int tab2 =1; + int tab3 =1; + int tab4 =1; + int tab5 =1; } // MEMME: diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/methodtypeparametername/InputMethodTypeParameterName.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/methodtypeparametername/InputMethodTypeParameterName.java index be3027e3f3d..a5b438e6dc8 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/methodtypeparametername/InputMethodTypeParameterName.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/methodtypeparametername/InputMethodTypeParameterName.java @@ -13,20 +13,20 @@ void foo(int i) { class Other { foo getOne() { - return null;//comment + return null;//comment } /*comment*/Tfo$o2T getTwo(Tfo$o2T a) { - return null; + return null; } foo getShadow() { - return null; + return null; } static class Junk { <_fo extends foo> void getMoreFoo() { - } + } } } @@ -35,8 +35,8 @@ class MoreOther { void getMore() { new Other() { void getMoreFoo() { - } - }; + } + }; // Other o = new Other() { // void getMoreFoo() { diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/packagename/InputPackageNameSimple.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/packagename/InputPackageNameSimple.java index 16cfd3e12c0..12e69addde9 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/packagename/InputPackageNameSimple.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/packagename/InputPackageNameSimple.java @@ -16,7 +16,7 @@ final class InputPackageNameSimple { // Long line ---------------------------------------------------------------- - // Contains a tab -> <- + // Contains a tab -> <- // Contains trailing whitespace -> // Name format tests @@ -142,8 +142,8 @@ void ALL_UPPERCASE_METHOD() private static final int BAD__NAME = 3; // A very, very long line that is OK because it matches the regexp "^.*is OK.*regexp.*$" - // long line that has a tab -> <- and would be OK if tab counted as 1 char - // tabs that count as one char because of their position -> <- -> <-, OK + // long line that has a tab -> <- and would be OK if tab counted as 1 char + // tabs that count as one char because of their position -> <- -> <-, OK /** some lines to test the error column after tabs */ void errorColumnAfterTabs() @@ -151,11 +151,11 @@ void errorColumnAfterTabs() // with tab-width 8 all statements below start at the same column, // with different combinations of ' ' and '\t' before the statement int tab0 =1; - int tab1 =1; - int tab2 =1; - int tab3 =1; - int tab4 =1; - int tab5 =1; + int tab1 =1; + int tab2 =1; + int tab3 =1; + int tab4 =1; + int tab5 =1; } // MEMME: diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/parametername/InputParameterName.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/parametername/InputParameterName.java index 9bc27f95de7..9e70b8f48fd 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/parametername/InputParameterName.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/parametername/InputParameterName.java @@ -16,7 +16,7 @@ final class InputParameterName { // Long line ---------------------------------------------------------------- - // Contains a tab -> <- + // Contains a tab -> <- // Contains trailing whitespace -> // Name format tests @@ -142,8 +142,8 @@ void ALL_UPPERCASE_METHOD() private static final int BAD__NAME = 3; // A very, very long line that is OK because it matches the regexp "^.*is OK.*regexp.*$" - // long line that has a tab -> <- and would be OK if tab counted as 1 char - // tabs that count as one char because of their position -> <- -> <-, OK + // long line that has a tab -> <- and would be OK if tab counted as 1 char + // tabs that count as one char because of their position -> <- -> <-, OK /** some lines to test the error column after tabs */ void errorColumnAfterTabs() @@ -151,11 +151,11 @@ void errorColumnAfterTabs() // with tab-width 8 all statements below start at the same column, // with different combinations of ' ' and '\t' before the statement int tab0 =1; - int tab1 =1; - int tab2 =1; - int tab3 =1; - int tab4 =1; - int tab5 =1; + int tab1 =1; + int tab2 =1; + int tab3 =1; + int tab4 =1; + int tab5 =1; } // MEMME: diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/staticvariablename/InputStaticVariableName.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/staticvariablename/InputStaticVariableName.java index c8674db9b93..04dd898e94a 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/staticvariablename/InputStaticVariableName.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/staticvariablename/InputStaticVariableName.java @@ -2,15 +2,15 @@ public class InputStaticVariableName { - /** Interface fields should be skipped */ - interface A { - public static int VAL_0 = 1; - } + /** Interface fields should be skipped */ + interface A { + public static int VAL_0 = 1; + } - /** Annotation fields should be skipped */ - @interface B { - String name() default ""; - int version() default 0; - public static int VAL_1 = 0; - } + /** Annotation fields should be skipped */ + @interface B { + String name() default ""; + int version() default 0; + public static int VAL_1 = 0; + } } diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/staticvariablename/InputStaticVariableName1.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/staticvariablename/InputStaticVariableName1.java index 996b291193e..53ad4b3f794 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/staticvariablename/InputStaticVariableName1.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/staticvariablename/InputStaticVariableName1.java @@ -16,7 +16,7 @@ final class InputStaticVariableName1 { // Long line ---------------------------------------------------------------- - // Contains a tab -> <- + // Contains a tab -> <- // Contains trailing whitespace -> // Name format tests @@ -142,8 +142,8 @@ void ALL_UPPERCASE_METHOD() private static final int BAD__NAME = 3; // A very, very long line that is OK because it matches the regexp "^.*is OK.*regexp.*$" - // long line that has a tab -> <- and would be OK if tab counted as 1 char - // tabs that count as one char because of their position -> <- -> <-, OK + // long line that has a tab -> <- and would be OK if tab counted as 1 char + // tabs that count as one char because of their position -> <- -> <-, OK /** some lines to test the error column after tabs */ void errorColumnAfterTabs() @@ -151,11 +151,11 @@ void errorColumnAfterTabs() // with tab-width 8 all statements below start at the same column, // with different combinations of ' ' and '\t' before the statement int tab0 =1; - int tab1 =1; - int tab2 =1; - int tab3 =1; - int tab4 =1; - int tab5 =1; + int tab1 =1; + int tab2 =1; + int tab3 =1; + int tab4 =1; + int tab5 =1; } // MEMME: diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/sizes/filelength/InputFileLength.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/sizes/filelength/InputFileLength.java index 57d50c6ba7c..eabb93a62c7 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/sizes/filelength/InputFileLength.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/sizes/filelength/InputFileLength.java @@ -16,7 +16,7 @@ final class InputFileLength { // Long line ---------------------------------------------------------------- - // Contains a tab -> <- + // Contains a tab -> <- // Contains trailing whitespace -> // Name format tests @@ -142,8 +142,8 @@ void ALL_UPPERCASE_METHOD() private static final int BAD__NAME = 3; // A very, very long line that is OK because it matches the regexp "^.*is OK.*regexp.*$" - // long line that has a tab -> <- and would be OK if tab counted as 1 char - // tabs that count as one char because of their position -> <- -> <-, OK + // long line that has a tab -> <- and would be OK if tab counted as 1 char + // tabs that count as one char because of their position -> <- -> <-, OK /** some lines to test the error column after tabs */ void errorColumnAfterTabs() @@ -151,11 +151,11 @@ void errorColumnAfterTabs() // with tab-width 8 all statements below start at the same column, // with different combinations of ' ' and '\t' before the statement int tab0 =1; - int tab1 =1; - int tab2 =1; - int tab3 =1; - int tab4 =1; - int tab5 =1; + int tab1 =1; + int tab2 =1; + int tab3 =1; + int tab4 =1; + int tab5 =1; } // MEMME: diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/sizes/methodlength/InputMethodLengthSimple.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/sizes/methodlength/InputMethodLengthSimple.java index b94d9a887f6..e7c6f882e97 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/sizes/methodlength/InputMethodLengthSimple.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/sizes/methodlength/InputMethodLengthSimple.java @@ -16,7 +16,7 @@ final class InputMethodLengthSimple { // Long line ---------------------------------------------------------------- - // Contains a tab -> <- + // Contains a tab -> <- // Contains trailing whitespace -> // Name format tests @@ -142,8 +142,8 @@ void ALL_UPPERCASE_METHOD() private static final int BAD__NAME = 3; // A very, very long line that is OK because it matches the regexp "^.*is OK.*regexp.*$" - // long line that has a tab -> <- and would be OK if tab counted as 1 char - // tabs that count as one char because of their position -> <- -> <-, OK + // long line that has a tab -> <- and would be OK if tab counted as 1 char + // tabs that count as one char because of their position -> <- -> <-, OK /** some lines to test the error column after tabs */ void errorColumnAfterTabs() @@ -151,11 +151,11 @@ void errorColumnAfterTabs() // with tab-width 8 all statements below start at the same column, // with different combinations of ' ' and '\t' before the statement int tab0 =1; - int tab1 =1; - int tab2 =1; - int tab3 =1; - int tab4 =1; - int tab5 =1; + int tab1 =1; + int tab2 =1; + int tab3 =1; + int tab4 =1; + int tab5 =1; } // MEMME: diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/sizes/outertypenumber/InputOuterTypeNumberSimple.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/sizes/outertypenumber/InputOuterTypeNumberSimple.java index 8d823e735de..e51327e3c51 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/sizes/outertypenumber/InputOuterTypeNumberSimple.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/sizes/outertypenumber/InputOuterTypeNumberSimple.java @@ -16,7 +16,7 @@ final class InputOuterTypeNumberSimple { // Long line ---------------------------------------------------------------- - // Contains a tab -> <- + // Contains a tab -> <- // Contains trailing whitespace -> // Name format tests @@ -142,8 +142,8 @@ void ALL_UPPERCASE_METHOD() private static final int BAD__NAME = 3; // A very, very long line that is OK because it matches the regexp "^.*is OK.*regexp.*$" - // long line that has a tab -> <- and would be OK if tab counted as 1 char - // tabs that count as one char because of their position -> <- -> <-, OK + // long line that has a tab -> <- and would be OK if tab counted as 1 char + // tabs that count as one char because of their position -> <- -> <-, OK /** some lines to test the error column after tabs */ void errorColumnAfterTabs() @@ -151,11 +151,11 @@ void errorColumnAfterTabs() // with tab-width 8 all statements below start at the same column, // with different combinations of ' ' and '\t' before the statement int tab0 =1; - int tab1 =1; - int tab2 =1; - int tab3 =1; - int tab4 =1; - int tab5 =1; + int tab1 =1; + int tab2 =1; + int tab3 =1; + int tab4 =1; + int tab5 =1; } // MEMME: diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/sizes/parameternumber/InputParameterNumberSimple.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/sizes/parameternumber/InputParameterNumberSimple.java index c77de0a5e45..dffedad3be0 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/sizes/parameternumber/InputParameterNumberSimple.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/sizes/parameternumber/InputParameterNumberSimple.java @@ -16,7 +16,7 @@ final class InputParameterNumberSimple { // Long line ---------------------------------------------------------------- - // Contains a tab -> <- + // Contains a tab -> <- // Contains trailing whitespace -> // Name format tests @@ -142,8 +142,8 @@ void ALL_UPPERCASE_METHOD() private static final int BAD__NAME = 3; // A very, very long line that is OK because it matches the regexp "^.*is OK.*regexp.*$" - // long line that has a tab -> <- and would be OK if tab counted as 1 char - // tabs that count as one char because of their position -> <- -> <-, OK + // long line that has a tab -> <- and would be OK if tab counted as 1 char + // tabs that count as one char because of their position -> <- -> <-, OK /** some lines to test the error column after tabs */ void errorColumnAfterTabs() @@ -151,11 +151,11 @@ void errorColumnAfterTabs() // with tab-width 8 all statements below start at the same column, // with different combinations of ' ' and '\t' before the statement int tab0 =1; - int tab1 =1; - int tab2 =1; - int tab3 =1; - int tab4 =1; - int tab5 =1; + int tab1 =1; + int tab2 =1; + int tab3 =1; + int tab4 =1; + int tab5 =1; } // MEMME: