Java, typeres: clean up code, add comments

This commit is contained in:
Bendegúz Nagy
2017-06-15 15:23:19 +02:00
parent bd187a3c63
commit 4175460d35
3 changed files with 127 additions and 47 deletions

View File

@ -13,12 +13,12 @@ import net.sourceforge.pmd.typeresolution.testdata.dummytypes.SuperClassA;
* Note: inherited fields of a nested class shadow outer scope variables
* Note: only if they are accessible!
*
* TODO: test static field access, array types, anonymous class
* TODO: test static field access, array types, anonymous class (super type access)
*/
public class FieldAccess extends SuperClassA {
public int field;
public FieldAccess f;
public static int a;
public static FieldAccess staticF;
public void foo(FieldAccess param) {
FieldAccess local = null;

View File

@ -1,14 +0,0 @@
/**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.typeresolution.testdata.dummytypes;
public class StaticFields {
public static StaticFields instanceFields;
public static int staticPrimitive;
public static GenericClass<Long, Integer> staticGeneric;
public long primitive;
public GenericClass<String, Number> generic;
}