View Javadoc
1   package de.japrost.qa.checkstyle.naming;
2   
3   /**
4    * Test the ConstantName checkstyle rule.
5    */
6   public class ConstantName {
7   	// correct names
8   	public static final String PUBLIC_RIGHT = "";
9   	protected static final String PROTECTED_RIGHT = "";
10  	static final String PACKAGE_RIGHT = "";
11  	private static final String PRIVATE_RIGHT = "";
12  
13  	// incorrect names
14  	public static final String PUBLIC_wrong = "";
15  	protected static final String PROTECTED_wrong = "";
16  	static final String PACKAGE_wrong = "";
17  	private static final String PRIVATE_wrong = "";
18  
19  	public void doStuff() {
20  		PRIVATE_RIGHT.equals(PRIVATE_wrong);
21  	}
22  }