-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcheckstyle-FinalLocalVariableCheck-visitToken-IF_STATEMENT-4.json
148 lines (148 loc) · 13 KB
/
checkstyle-FinalLocalVariableCheck-visitToken-IF_STATEMENT-4.json
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
"repositoryName": "checkstyle",
"repositoryWebURL": "https://github.com/checkstyle/checkstyle.git",
"filePath": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"functionName": "visitToken",
"functionKey": "src/main/java/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)",
"functionStartLine": 187,
"blockType": "IF_STATEMENT",
"blockKey": "src/main/java/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(225-232)",
"blockStartLine": 225,
"blockEndLine": 232,
"startCommitId": "119fd4fb33bef9f5c66fc950396669af842c21a3",
"expectedChanges": [
{
"parentCommitId": "172f0355e12b1c3c2f172b62514846d2d731a35f",
"commitId": "5e0ab75777985f056715f6d9dc5e4667b1a0dfa2",
"commitTime": 1492545245,
"changeType": "body change",
"elementFileBefore": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameBefore": "src/main/java/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(214-220)",
"elementFileAfter": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameAfter": "src/main/java/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(221-228)"
},
{
"parentCommitId": "2bf2138d04ebbb969c6c26d27f01ef0a572a64c8",
"commitId": "ed76401d3bd039d684d6de21c4894d3ab62a3076",
"commitTime": 1469250569,
"changeType": "body change",
"elementFileBefore": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameBefore": "src/main/java/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(211-225)",
"elementFileAfter": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameAfter": "src/main/java/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(211-217)"
},
{
"parentCommitId": "0a1a4c6e94c9b3b73b21b323f14ae7b7337b1b44",
"commitId": "bf69cf167c9432daabc7b6e4a426fff33650a057",
"commitTime": 1459291652,
"changeType": "body change",
"elementFileBefore": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameBefore": "src/main/java/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(210-228)",
"elementFileAfter": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameAfter": "src/main/java/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(211-225)"
},
{
"parentCommitId": "62c19a216f208a75158fd426523d23d1a98b70cb",
"commitId": "0a1a4c6e94c9b3b73b21b323f14ae7b7337b1b44",
"commitTime": 1459291651,
"changeType": "body change",
"elementFileBefore": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameBefore": "src/main/java/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(210-225)",
"elementFileAfter": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameAfter": "src/main/java/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(210-228)"
},
{
"parentCommitId": "11210350f58660d96012cea051f0fbc3bc462cb1",
"commitId": "55aa50d8f09d28521f0d0004ce475fa09082faea",
"commitTime": 1459291651,
"changeType": "body change",
"elementFileBefore": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameBefore": "src/main/java/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(210-213)",
"elementFileAfter": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameAfter": "src/main/java/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(210-225)"
},
{
"parentCommitId": "da2d75a1780c1691dc4aa45489f9e9674b1c652e",
"commitId": "36b91a59d62c9505b835717f00f470c499cf9b30",
"commitTime": 1446385289,
"changeType": "expression change",
"elementFileBefore": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameBefore": "src/main/java/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(201-204)",
"elementFileAfter": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameAfter": "src/main/java/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(200-203)"
},
{
"parentCommitId": "6d9d894a62caf7e7419fcb07e7d972499e4306d7",
"commitId": "3831aa913e25d2bd424ccbeb239bd06439867a58",
"commitTime": 1434261690,
"changeType": "expression change",
"elementFileBefore": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameBefore": "src/main/java/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(170-188)",
"elementFileAfter": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameAfter": "src/main/java/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(170-173)"
},
{
"parentCommitId": "5cd9806d4b7900f41eb855d197eb334abade3ac8",
"commitId": "98a9266a8091c1c6b26d41b4e17e1a32458f1bac",
"commitTime": 1426370179,
"changeType": "expression change",
"elementFileBefore": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameBefore": "src/main/java/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(174-196)",
"elementFileAfter": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameAfter": "src/main/java/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(176-195)",
"comment": "Merge Conditional [if(ast.getParent().getFirstChild() == ast), if(TokenTypes.POST_DEC == parentType || TokenTypes.DEC == parentType || TokenTypes.POST_INC == parentType || TokenTypes.INC == parentType || TokenTypes.ASSIGN == parentType || TokenTypes.PLUS_ASSIGN == parentType || TokenTypes.MINUS_ASSIGN == parentType || TokenTypes.DIV_ASSIGN == parentType || TokenTypes.STAR_ASSIGN == parentType || TokenTypes.MOD_ASSIGN == parentType || TokenTypes.SR_ASSIGN == parentType || TokenTypes.BSR_ASSIGN == parentType || TokenTypes.SL_ASSIGN == parentType || TokenTypes.BXOR_ASSIGN == parentType || TokenTypes.BOR_ASSIGN == parentType || TokenTypes.BAND_ASSIGN == parentType)] to if((TokenTypes.POST_DEC == parentType || TokenTypes.DEC == parentType || TokenTypes.POST_INC == parentType || TokenTypes.INC == parentType || TokenTypes.ASSIGN == parentType || TokenTypes.PLUS_ASSIGN == parentType || TokenTypes.MINUS_ASSIGN == parentType || TokenTypes.DIV_ASSIGN == parentType || TokenTypes.STAR_ASSIGN == parentType || TokenTypes.MOD_ASSIGN == parentType || TokenTypes.SR_ASSIGN == parentType || TokenTypes.BSR_ASSIGN == parentType || TokenTypes.SL_ASSIGN == parentType || TokenTypes.BXOR_ASSIGN == parentType || TokenTypes.BOR_ASSIGN == parentType || TokenTypes.BAND_ASSIGN == parentType) && ast.getParent().getFirstChild() == ast) in method public visitToken(ast DetailAST) : void from class com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck"
},
{
"parentCommitId": "5cd9806d4b7900f41eb855d197eb334abade3ac8",
"commitId": "98a9266a8091c1c6b26d41b4e17e1a32458f1bac",
"commitTime": 1426370179,
"changeType": "body change",
"elementFileBefore": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameBefore": "src/main/java/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(174-196)",
"elementFileAfter": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameAfter": "src/main/java/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(176-195)",
"comment": "Merge Conditional [if(ast.getParent().getFirstChild() == ast), if(TokenTypes.POST_DEC == parentType || TokenTypes.DEC == parentType || TokenTypes.POST_INC == parentType || TokenTypes.INC == parentType || TokenTypes.ASSIGN == parentType || TokenTypes.PLUS_ASSIGN == parentType || TokenTypes.MINUS_ASSIGN == parentType || TokenTypes.DIV_ASSIGN == parentType || TokenTypes.STAR_ASSIGN == parentType || TokenTypes.MOD_ASSIGN == parentType || TokenTypes.SR_ASSIGN == parentType || TokenTypes.BSR_ASSIGN == parentType || TokenTypes.SL_ASSIGN == parentType || TokenTypes.BXOR_ASSIGN == parentType || TokenTypes.BOR_ASSIGN == parentType || TokenTypes.BAND_ASSIGN == parentType)] to if((TokenTypes.POST_DEC == parentType || TokenTypes.DEC == parentType || TokenTypes.POST_INC == parentType || TokenTypes.INC == parentType || TokenTypes.ASSIGN == parentType || TokenTypes.PLUS_ASSIGN == parentType || TokenTypes.MINUS_ASSIGN == parentType || TokenTypes.DIV_ASSIGN == parentType || TokenTypes.STAR_ASSIGN == parentType || TokenTypes.MOD_ASSIGN == parentType || TokenTypes.SR_ASSIGN == parentType || TokenTypes.BSR_ASSIGN == parentType || TokenTypes.SL_ASSIGN == parentType || TokenTypes.BXOR_ASSIGN == parentType || TokenTypes.BOR_ASSIGN == parentType || TokenTypes.BAND_ASSIGN == parentType) && ast.getParent().getFirstChild() == ast) in method public visitToken(ast DetailAST) : void from class com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck"
},
{
"parentCommitId": "b9f232ffe08853fbfd0239d53d683d4fe5c6b817",
"commitId": "1bd30555eac039d0486dffb3fc43b7a34117909b",
"commitTime": 1426023398,
"changeType": "expression change",
"elementFileBefore": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameBefore": "src/main/java/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(166-188)",
"elementFileAfter": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameAfter": "src/main/java/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(166-188)"
},
{
"parentCommitId": "b94bac0719851b65b59b4aafc5bd3ef029321ed7",
"commitId": "bb1b29851f14bf7eaf5656e01c285c0f5f3b9000",
"commitTime": 1421677214,
"changeType": "body change",
"elementFileBefore": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameBefore": "src/main/java/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(120-142)",
"elementFileAfter": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameAfter": "src/main/java/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(120-142)"
},
{
"parentCommitId": "b78fa7ddd8cfbf7b47a69d0c466e7b3fae78d1e8",
"commitId": "43fe1ad269809f293b375dc4d0a4313798bf2124",
"commitTime": 1121952313,
"changeType": "body change",
"elementFileBefore": "src/checkstyle/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameBefore": "src/checkstyle/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(124-142)",
"elementFileAfter": "src/checkstyle/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameAfter": "src/checkstyle/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(124-146)"
},
{
"parentCommitId": "753a3a0c9708a7c050efd1dad93c37b424cf5c73",
"commitId": "0c717ef2abd068366612d44280633a1c7ac9efac",
"commitTime": 1063281707,
"changeType": "introduced",
"elementFileBefore": "src/checkstyle/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameBefore": "src/checkstyle/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(116-134)",
"elementFileAfter": "src/checkstyle/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"elementNameAfter": "src/checkstyle/com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck#visitToken(DetailAST)$if(116-134)",
"comment": "added with method"
}
]
}