parent
d1679b4127
commit
7492715abf
@ -0,0 +1,13 @@ |
||||
package unit.classes; |
||||
|
||||
public class TestClassFields { |
||||
|
||||
private static int[] sizes; |
||||
private static String[] names; |
||||
|
||||
static { |
||||
|
||||
names = new String[]{"name1", "name2"}; |
||||
sizes = new int[names.length]; |
||||
} |
||||
} |
@ -0,0 +1,14 @@ |
||||
package unit.classes; |
||||
|
||||
|
||||
public class TestClassFields { |
||||
|
||||
private static int[] sizes; |
||||
private static String[] names = new String[]{"name1", "name2"}; |
||||
|
||||
|
||||
static { |
||||
sizes = new int[names.length]; |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue