8220377: Unused field SourceFileObject.flatname
authorcushon
Fri, 08 Mar 2019 09:41:03 -0800
changeset 54039 fd6c13481231
parent 54038 2915818a0237
child 54040 56adab1e0edd
8220377: Unused field SourceFileObject.flatname Reviewed-by: jjg Contributed-by: Ron Shapiro <ronshapiro@google.com>
src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/ClassReader.java
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/ClassReader.java	Fri Mar 08 11:09:39 2019 -0800
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/ClassReader.java	Fri Mar 08 09:41:03 2019 -0800
@@ -1174,7 +1174,7 @@
                 protected void read(Symbol sym, int attrLen) {
                     ClassSymbol c = (ClassSymbol) sym;
                     Name n = readName(nextChar());
-                    c.sourcefile = new SourceFileObject(n, c.flatname);
+                    c.sourcefile = new SourceFileObject(n);
                     // If the class is a toplevel class, originating from a Java source file,
                     // but the class name does not match the file name, then it is
                     // an auxiliary class.
@@ -2950,11 +2950,9 @@
         /** The file's name.
          */
         private final Name name;
-        private final Name flatname;
 
-        public SourceFileObject(Name name, Name flatname) {
+        public SourceFileObject(Name name) {
             this.name = name;
-            this.flatname = flatname;
         }
 
         @Override @DefinedBy(Api.COMPILER)