diff options
author | Max <maxvetrenko2241@gmail.com> | 2014-08-12 16:38:34 +0400 |
---|---|---|
committer | Roman Ivanov <ivanov-jr@mail.ru> | 2014-08-12 11:27:53 -0700 |
commit | 2628fc197d9b12bb03324c46478ef840166cc075 (patch) | |
tree | ace70d088e700a74b3c140e5dd7fc77347c80678 /src/test/resources/com/puppycrawl/tools/checkstyle/naming | |
parent | 78ccdd54ce953c433981052246e95008531f21d2 (diff) | |
download | checkstyle-2628fc197d9b12bb03324c46478ef840166cc075.tar.gz |
Update for MemberNameCheck #244
Diffstat (limited to 'src/test/resources/com/puppycrawl/tools/checkstyle/naming')
-rw-r--r-- | src/test/resources/com/puppycrawl/tools/checkstyle/naming/InputMemberNameExtended.java | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/naming/InputMemberNameExtended.java b/src/test/resources/com/puppycrawl/tools/checkstyle/naming/InputMemberNameExtended.java new file mode 100644 index 000000000..6989e4adf --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/naming/InputMemberNameExtended.java @@ -0,0 +1,84 @@ +package com.puppycrawl.tools.checkstyle.naming; + +import test.Direction; +import test.InputMemberName.Inner; + +public class InputMemberName +{ + public int mPublic; + protected int mProtected; + int mPackage; + private int mPrivate; + + public int _public; + protected int _protected; + int _package; + private int _private; + + class Inner { + public int mPublic; + protected int mProtected; + int mPackage; + private int mPrivate; + + public int _public; + protected int _protected; + int _package; + private int _private; + } + + Inner anon = new Inner() { + public int mPublic; + protected int mProtected; + int mPackage; + private int mPrivate; + + public int _public; + protected int _protected; + int _package; + private int _private; + }; +} + +interface In +{ + public int mPublic = 0; + int mProtected = 0; + int mPackage = 0; + int mPrivate = 0; + + public int _public = 0; + int _protected = 0; + int _package = 0; + int _private = 0; +} + +enum Direction { + + NORTH(1), + SOUTH(-1), + EAST(-2), + WEST(2); + + public int mPublic = 0; + int mProtected = 0; + int mPackage = 0; + int mPrivate = 0; + + public int _public = 0; + int _protected = 0; + int _package = 0; + int _private = 0; + + Direction(int code){ + this.code=code; + } + protected int code; + public int getCode() { + return this.code; + } + static Direction getOppositeDirection(Direction d){ + return null; + } +} + |