updated copyright notice
[javainspect.git] / src / main / java / eu / svjatoslav / inspector / java / structure / FieldDescriptor.java
old mode 100644 (file)
new mode 100755 (executable)
index db5a112..902d415
@@ -1,10 +1,10 @@
 /*
  * JavaInspect - Utility to visualize java software
- * Copyright (C) 2013, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2013-2015, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
  * 
  * This program is free software; you can redistribute it and/or
- * modify it under the terms of version 2 of the GNU General Public License
- * as published by the Free Software Foundation.
+ * modify it under the terms of version 3 of the GNU Lesser General Public License
+ * or later as published by the Free Software Foundation.
  */
 
 package eu.svjatoslav.inspector.java.structure;
@@ -27,12 +27,12 @@ public class FieldDescriptor implements GraphElement {
        List<ClassDescriptor> typeArguments = new ArrayList<ClassDescriptor>();
 
        public FieldDescriptor(final Field field, final ClassDescriptor parent,
-                       final ClassGraph dump) {
+                       final ClassGraph classGraph) {
 
                parentClass = parent;
 
                if (!field.getDeclaringClass().getName()
-                               .equals(parent.fullyQualifiedName))
+                               .equals(parent.classFullyQualifiedName))
                        // if field is inherited, do not index it
                        return;
 
@@ -42,7 +42,7 @@ public class FieldDescriptor implements GraphElement {
                parent.nameToFieldMap.put(field.getName(), this);
 
                name = field.getName();
-               type = dump.addClass(field.getType());
+               type = classGraph.addClass(field.getType());
                type.registerReference();
 
                final Type genericType = field.getGenericType();
@@ -51,7 +51,7 @@ public class FieldDescriptor implements GraphElement {
                        for (final Type t : pt.getActualTypeArguments())
                                if (t instanceof Class) {
                                        final Class cl = (Class) t;
-                                       final ClassDescriptor genericTypeDescriptor = dump
+                                       final ClassDescriptor genericTypeDescriptor = classGraph
                                                        .addClass(cl);
                                        genericTypeDescriptor.registerReference();
                                        typeArguments.add(genericTypeDescriptor);