mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Java inspection: fixed test data for TooBroadScopeInspection (IDEA-157727)
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
class Comments2 {
|
||||
|
||||
public int methodThree(final int data) {
|
||||
int alpha<caret> = (data) + 5; // !!!
|
||||
int alph<caret>a = (data) + 5; // !!!
|
||||
if (data == 0) {
|
||||
throw new IllegalArgumentException("DATA_CANT_BE_ZERO");
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package com.siyeh.igfixes.dataflow.too_broad_scope;
|
||||
public class ForStatement {
|
||||
|
||||
void noCondition() {
|
||||
int i<caret> = 1;
|
||||
int <caret>i = 1;
|
||||
for (; ; i++) {
|
||||
if (i == 10){
|
||||
break;
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ package com.siyeh.igfixes.dataflow.too_broad_scope;
|
||||
|
||||
public class ForStatement2 {
|
||||
void noCondition() {
|
||||
int i<caret> = 1;
|
||||
int <caret>i = 1;
|
||||
for (; ; ) {
|
||||
i++;
|
||||
if (i == 10){
|
||||
|
||||
Reference in New Issue
Block a user