equal
deleted
inserted
replaced
63 } |
63 } |
64 |
64 |
65 protected ZipArchive(JavacFileManager fm, ZipFile zfile, boolean initMap) throws IOException { |
65 protected ZipArchive(JavacFileManager fm, ZipFile zfile, boolean initMap) throws IOException { |
66 this.fileManager = fm; |
66 this.fileManager = fm; |
67 this.zfile = zfile; |
67 this.zfile = zfile; |
68 this.map = new HashMap<RelativeDirectory,List<String>>(); |
68 this.map = new HashMap<>(); |
69 if (initMap) |
69 if (initMap) |
70 initMap(); |
70 initMap(); |
71 } |
71 } |
72 |
72 |
73 protected void initMap() throws IOException { |
73 protected void initMap() throws IOException { |
131 |
131 |
132 private File getAbsoluteFile() { |
132 private File getAbsoluteFile() { |
133 File absFile = (absFileRef == null ? null : absFileRef.get()); |
133 File absFile = (absFileRef == null ? null : absFileRef.get()); |
134 if (absFile == null) { |
134 if (absFile == null) { |
135 absFile = new File(zfile.getName()).getAbsoluteFile(); |
135 absFile = new File(zfile.getName()).getAbsoluteFile(); |
136 absFileRef = new SoftReference<File>(absFile); |
136 absFileRef = new SoftReference<>(absFile); |
137 } |
137 } |
138 return absFile; |
138 return absFile; |
139 } |
139 } |
140 |
140 |
141 /** |
141 /** |