mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
moving tests to CE
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems>
|
||||
<problem>
|
||||
<file>Test.java</file>
|
||||
<line>2</line>
|
||||
<description>Field can be converted to a variable</description>
|
||||
</problem>
|
||||
</problems>
|
||||
@@ -0,0 +1,15 @@
|
||||
class Temp {
|
||||
private int length = 10;
|
||||
private int[] array;
|
||||
|
||||
public Temp()
|
||||
{
|
||||
array = new int[length];
|
||||
}
|
||||
|
||||
|
||||
public int[] getArray()
|
||||
{
|
||||
return array;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems>
|
||||
<problem>
|
||||
<file>Test.java</file>
|
||||
<line>2</line>
|
||||
<description>Field can be converted to a variable</description>
|
||||
</problem>
|
||||
</problems>
|
||||
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
private int f;
|
||||
|
||||
void foo () {
|
||||
f = 0;
|
||||
int k = f;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems>
|
||||
</problems>
|
||||
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
private static int count = 0;
|
||||
|
||||
public FieldCanBeLocal() {
|
||||
count = count + 1;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems>
|
||||
</problems>
|
||||
@@ -0,0 +1,11 @@
|
||||
class Test {
|
||||
private static final int f = 0;
|
||||
|
||||
void foo () {
|
||||
int k = f;
|
||||
}
|
||||
|
||||
int bar () {
|
||||
return f;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems>
|
||||
</problems>
|
||||
@@ -0,0 +1,13 @@
|
||||
class Test {
|
||||
private int f;
|
||||
|
||||
void foo () {
|
||||
f = 0;
|
||||
int k = f;
|
||||
}
|
||||
|
||||
int bar () {
|
||||
f = 5;
|
||||
return f;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user