diff options
author | vasilyeva <vasilyeva@rutarget.ru> | 2017-09-24 13:29:30 +0300 |
---|---|---|
committer | Roman Ivanov <romani@users.noreply.github.com> | 2017-09-24 06:28:55 -0700 |
commit | b0493771961c1fd89c96271b397da62699877551 (patch) | |
tree | b19daf7767c2551be8c88cc98f3d08eb9170ffe9 /src/test/resources/com | |
parent | ebca211ef9f8a757a8973cc7e3252c80c736f9ca (diff) | |
download | checkstyle-b0493771961c1fd89c96271b397da62699877551.tar.gz |
Issue #5008: increase coverage of pitest-checks-coding to 97%
Diffstat (limited to 'src/test/resources/com')
3 files changed, 20 insertions, 0 deletions
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/declarationorder/InputDeclarationOrder.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/declarationorder/InputDeclarationOrder.java index 7ddbb89fe..9c0303b80 100644 --- a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/declarationorder/InputDeclarationOrder.java +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/declarationorder/InputDeclarationOrder.java @@ -40,6 +40,13 @@ public class InputDeclarationOrder foo += INNER_FOO3; } + public InnerClass(int start) + { + int foo = start; + foo += INNER_FOO2; + foo += INNER_FOO3; + } + // error member variables should be before methods or ctors // error public before private public static final int INNER_FOO3 = 2; diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/multiplestringliterals/InputMultipleStringLiteralsNoWarnings.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/multiplestringliterals/InputMultipleStringLiteralsNoWarnings.java new file mode 100644 index 000000000..f33d30bb4 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/multiplestringliterals/InputMultipleStringLiteralsNoWarnings.java @@ -0,0 +1,5 @@ +package com.puppycrawl.tools.checkstyle.checks.coding.multiplestringliterals; + +public class InputMultipleStringLiteralsNoWarnings { + private final String m4 = "" + ""; +} diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/superclone/InputSuperCloneWithoutWarnings.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/superclone/InputSuperCloneWithoutWarnings.java new file mode 100644 index 000000000..afc0740c3 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/superclone/InputSuperCloneWithoutWarnings.java @@ -0,0 +1,8 @@ +package com.puppycrawl.tools.checkstyle.checks.coding.superclone; + +public class InputSuperCloneWithoutWarnings { + @Override + protected final Object clone() throws CloneNotSupportedException { + return new InputSuperCloneWithoutWarnings(); + } +} |