aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/com/puppycrawl/tools/checkstyle/checks/naming/InputOneCharInitVarName.java
blob: e669e59f32c8075961fb64d08fe25d01d73d7f92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
////////////////////////////////////////////////////////////////////////////////
// Test case file for checkstyle.
// Created: Feb-2001
// Ignore error
////////////////////////////////////////////////////////////////////////////////
package com.puppycrawl.tools.checkstyle.checks.naming;
import java.io.*;
import java.util.HashMap;
import java.util.Map;

class InputOneCharInitVarName
{
	public void fooMethod()
	{
		for(int i = 1; i <10; i++) {
			//come code
		}
		
		int i = 0;
		
        for(int index = 1; index < 10; index++) {
			//come code
		}
        
        for(int Index = 1; Index < 10; Index++) {
			//come code
		}
        
        int index = 1;

		for(; index < 10; index++) {
			//come code
		}
		
		for(; i < 12; i++) {
			//come code
		}
		
		Map<String, String> map = new HashMap<String, String>();
		
		for (Map.Entry<String, String> e : map.entrySet()) {
			//some code
		}
	}
}