Permalink
Browse files

Issue checkstyle#4587: Moved all resources for SuppressWarnings check

  • Loading branch information...
Dmytro Kytsmen
Dmytro Kytsmen committed Jul 7, 2017
1 parent 40107f3 commit 96810973699b7a64bc82175c88817698d469fbd5
@@ -56,12 +56,18 @@
public class SuppressWarningsHolderTest extends BaseCheckTestSupport {
@Override
protected String getPath(String filename) throws IOException {
return super.getPath("checks" + File.separator + filename);
return super.getPath("checks" + File.separator
+ "misc" + File.separator
+ "suppresswarnings" + File.separator
+ filename);
}
@Override
protected String getNonCompilablePath(String filename) throws IOException {
return super.getNonCompilablePath("checks" + File.separator + filename);
return super.getNonCompilablePath("checks" + File.separator
+ "misc" + File.separator
+ "suppresswarnings" + File.separator
+ filename);
}
@Test

This file was deleted.

Oops, something went wrong.
@@ -1,4 +1,4 @@
package com.puppycrawl.tools.checkstyle.checks;
package com.puppycrawl.tools.checkstyle.checks.misc.suppresswarnings;
public class InputSuppressWarningsHolder {
static final String UNUSED = "unused";
@@ -7,13 +7,13 @@
int a;
@SuppressWarnings(InputSuppressWarningsHolder.UNUSED)
int b;
@SuppressWarnings(com.puppycrawl.tools.checkstyle.checks.InputSuppressWarningsHolder.UNUSED)
@SuppressWarnings(InputSuppressWarningsHolder.UNUSED)
int c;
@SuppressWarnings(value = UNUSED)
int d;
@SuppressWarnings(value = InputSuppressWarningsHolder.UNUSED)
int e;
@SuppressWarnings(value = com.puppycrawl.tools.checkstyle.checks.InputSuppressWarningsHolder.UNUSED)
@SuppressWarnings(value = InputSuppressWarningsHolder.UNUSED)
int f;
@SuppressWarnings((1 != 1) ? "" : "unused")
int g;
@@ -1,4 +1,4 @@
package com.puppycrawl.tools.checkstyle.checks;
package com.puppycrawl.tools.checkstyle.checks.misc.suppresswarnings;
public class InputSuppressWarningsHolder2
{
@@ -1,4 +1,4 @@
package com.puppycrawl.tools.checkstyle.checks;
package com.puppycrawl.tools.checkstyle.checks.misc.suppresswarnings;
public class InputSuppressWarningsHolder3 {
@@ -0,0 +1,10 @@
package com.puppycrawl.tools.checkstyle.checks.misc.suppresswarnings;
public class InputSuppressWarningsHolder4 {
@CustomAnnotation()
int a;
}
@interface CustomAnnotation {
}
@@ -1,4 +1,4 @@
package com.puppycrawl.tools.checkstyle.checks;
package com.puppycrawl.tools.checkstyle.checks.misc.suppresswarnings;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;

0 comments on commit 9681097

Please sign in to comment.