Skip to content

Commit

Permalink
AbbreviationAsWordInTypeNameCheck#195 CompilableUTInput
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkravin committed Aug 27, 2014
1 parent b3a12fa commit 4fe398b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.github.sevntu.checkstyle.checks.naming;

public class AbbreviationClass {
protected void oveRRRRRrriddenMethod(){
int a = 0;
// blah-blah
}
protected void oveRRRRRrriddenMethod1(){
int a = 0;
// blah-blah
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.puppycrawl.tools.checkstyle.naming;
package com.github.sevntu.checkstyle.checks.naming;

abstract public class IIIInputAbstractClassName {
abstract class IIIInputAbstractClassName {
}

abstract class NonAAAAbstractClassName {
Expand All @@ -14,26 +14,26 @@ abstract class NonAbstractInnerClass {
}
}

abstract class ClassFactory {
abstract class ClassFactory1 {
abstract class WellNamedFactory {
}
}

class NonAbstractClass {
class NonAbstractClass1 {
}

class AbstractClass {
class AbstractClass1 {
}

class Class1Factory {
class Class1Factory1 {
}

abstract class AbstractClassName2 {
abstract class AbstractClass2Name2 {
class AbstractINNERRClass {
}
}

abstract class Class2Factory {
abstract class Class2Factory1 {
class WellNamedFACTORY {
public void marazmaticMETHODName() {
int marazmaticVARIABLEName = 2;
Expand All @@ -42,7 +42,7 @@ public void marazmaticMETHODName() {
}
}

public interface Directions {
interface Directions {
int RIGHT=1;
int LEFT=2;
int UP=3;
Expand All @@ -54,7 +54,7 @@ interface BadNameForInterfeis
void interfaceMethod();
}

abstract class NonAAAAbstractClassName1 {
abstract class NonAAAAbstractClassName2 {
public int serialNUMBER = 6;
public final int s1erialNUMBER = 6;
private static int s2erialNUMBER = 6;
Expand Down Expand Up @@ -85,7 +85,7 @@ interface Interface4 {

}

public class FIleNameFormatException extends Exception {
class FIleNameFormatException extends Exception {

private static final long serialVersionUID = 1L;

Expand All @@ -103,3 +103,7 @@ int getScaleX() {
}
}

public class InputAbbreviationAsWordInTypeNameCheck {

}

Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package com.puppycrawl.tools.checkstyle.naming;
package com.github.sevntu.checkstyle.checks.naming;

import org.junit.Before;

abstract class NonAAAAbstractClassName1 {
abstract class NonAAAAbstractClassName1 extends AbbreviationClass {
public int serialNUMBER = 6;
public final int s1erialNUMBER = 6;
private static int s2erialNUMBER = 6;
private static final int s3erialNUMBER = 6;

@Override
@SuppressWarnings
@SuppressWarnings(value = { "" })
@Before
private void oveRRRRRrriddenMethod(){
protected void oveRRRRRrriddenMethod(){
int a = 0;
// blah-blah
}
Expand All @@ -26,12 +26,12 @@ private void oveRRRRRrriddenMethod(){

}

class Class2 extends Class1 {
class Class2 extends AbbreviationClass {

@Override
@SuppressWarnings
@SuppressWarnings(value = { "" })
@Before
private void oveRRRRRrriddenMethod(){
protected void oveRRRRRrriddenMethod1(){
int a = 0;
// blah-blah
}
Expand Down

0 comments on commit 4fe398b

Please sign in to comment.