Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTill Brychcy2019-07-13 12:02:23 -0400
committerTill Brychcy2019-07-13 12:02:23 -0400
commitee01396d04369bba48f1089d31dad2174198b35e (patch)
treef6f0fbb45ccd18a55acd1f9887ac1bd404a53e5b
parent265420db571ba7066a328ee53aa99f6ab72981a9 (diff)
downloadeclipse.jdt.core-ee01396d04369bba48f1089d31dad2174198b35e.tar.gz
eclipse.jdt.core-ee01396d04369bba48f1089d31dad2174198b35e.tar.xz
eclipse.jdt.core-ee01396d04369bba48f1089d31dad2174198b35e.zip
o.e.j.i.compiler.batch.ClasspathLocation.isAutoModule and related code Change-Id: Ia00ba4b0bdba28c858394dbcbe2562cdcccc82ba
-rw-r--r--org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/BasicModule.java6
-rw-r--r--org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/ClasspathDirectory.java3
-rw-r--r--org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/ClasspathJar.java13
-rw-r--r--org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/ClasspathLocation.java4
4 files changed, 1 insertions, 25 deletions
diff --git a/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/BasicModule.java b/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/BasicModule.java
index b504b0bd59..1dcfc22311 100644
--- a/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/BasicModule.java
+++ b/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/BasicModule.java
@@ -95,7 +95,6 @@ public class BasicModule implements ISourceModule {
return exp;
}
- boolean isAutomodule;
private boolean isOpen = false;
char[] name;
IModule.IModuleReference[] requires;
@@ -154,7 +153,6 @@ public class BasicModule implements ISourceModule {
} else {
this.opens = new PackageExportImpl[0];
}
- this.isAutomodule = false; // Just to be explicit
this.isOpen = descriptor.isOpen();
}
@Override
@@ -186,10 +184,6 @@ public class BasicModule implements ISourceModule {
return this.opens;
}
@Override
- public boolean isAutomatic() {
- return this.isAutomodule;
- }
- @Override
public boolean isOpen() {
return this.isOpen;
}
diff --git a/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/ClasspathDirectory.java b/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/ClasspathDirectory.java
index 36afb92c65..0f05fbd865 100644
--- a/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/ClasspathDirectory.java
+++ b/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/ClasspathDirectory.java
@@ -384,9 +384,6 @@ public int getMode() {
}
@Override
public IModule getModule() {
- if (this.isAutoModule && this.module == null) {
- return this.module = IModule.createAutomatic(this.path, false, null/*no manifest*/);
- }
return this.module;
}
}
diff --git a/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/ClasspathJar.java b/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/ClasspathJar.java
index c565187e35..0f85ef512f 100644
--- a/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/ClasspathJar.java
+++ b/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/ClasspathJar.java
@@ -25,7 +25,6 @@ import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
-import java.util.jar.Manifest;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
@@ -330,18 +329,6 @@ public int getMode() {
@Override
public IModule getModule() {
- if (this.isAutoModule && this.module == null) {
- Manifest manifest = null;
- try {
- initialize();
- ZipEntry entry = this.zipFile.getEntry(TypeConstants.META_INF_MANIFEST_MF);
- if (entry != null)
- manifest = new Manifest(this.zipFile.getInputStream(entry));
- } catch (IOException e) {
- // no usable manifest
- }
- return this.module = IModule.createAutomatic(this.file.getName(), true, manifest);
- }
return this.module;
}
}
diff --git a/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/ClasspathLocation.java b/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/ClasspathLocation.java
index 95c1040efb..125fa61877 100644
--- a/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/ClasspathLocation.java
+++ b/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/ClasspathLocation.java
@@ -40,7 +40,6 @@ public abstract class ClasspathLocation implements FileSystem.Classpath,
char[] normalizedPath;
public AccessRuleSet accessRuleSet;
IModule module;
- protected boolean isAutoModule;
public String destinationPath;
// destination path for compilation units that are reached through this
@@ -126,11 +125,10 @@ public abstract class ClasspathLocation implements FileSystem.Classpath,
@Override
public void acceptModule(IModule mod) {
this.module = mod;
- this.isAutoModule = mod.isAutomatic();
}
@Override
public boolean isAutomaticModule() {
- return this.isAutoModule;
+ return this.module == null ? false : this.module.isAutomatic();
}
@Override
public Collection<String> getModuleNames(Collection<String> limitModules) {

Back to the top