< prev index next >

src/java.base/share/classes/jdk/internal/module/Builder.java

Print this page

        

@@ -143,13 +143,10 @@
     Set<String> packages;
     Set<String> uses;
     Set<Provides> provides;
     Version version;
     String mainClass;
-    String osName;
-    String osArch;
-    String osVersion;
 
     Builder(String name) {
         this.name = name;
         this.requires = Collections.emptySet();
         this.exports = Collections.emptySet();

@@ -246,34 +243,10 @@
         mainClass = mc;
         return this;
     }
 
     /**
-     * Sets the OS name.
-     */
-    public Builder osName(String name) {
-        this.osName = name;
-        return this;
-    }
-
-    /**
-     * Sets the OS arch.
-     */
-    public Builder osArch(String arch) {
-        this.osArch = arch;
-        return this;
-    }
-
-    /**
-     * Sets the OS version.
-     */
-    public Builder osVersion(String version) {
-        this.osVersion = version;
-        return this;
-    }
-
-    /**
      * Returns an immutable set of the module modifiers derived from the flags.
      */
     private Set<ModuleDescriptor.Modifier> modifiers() {
         int n = 0;
         if (open) n++;

@@ -303,11 +276,8 @@
                                         opens,
                                         uses,
                                         provides,
                                         packages,
                                         mainClass,
-                                        osName,
-                                        osArch,
-                                        osVersion,
                                         hashCode);
     }
 }
< prev index next >