< prev index next >

src/jdk.jlink/share/classes/jdk/tools/jlink/internal/ImagePluginStack.java

Print this page

        

@@ -165,32 +165,29 @@
     private final List<PostProcessorPlugin> postProcessingPlugins = new ArrayList<>();
     private final List<ResourcePrevisitor> resourcePrevisitors = new ArrayList<>();
 
     private final ImageBuilder imageBuilder;
     private final Properties release;
-    private final String bom;
 
-    public ImagePluginStack(String bom) {
+    public ImagePluginStack() {
         this(null, Collections.emptyList(), null,
-                Collections.emptyList(), null, bom);
+                Collections.emptyList(), null);
     }
 
     public ImagePluginStack(ImageBuilder imageBuilder,
             List<TransformerPlugin> contentPlugins,
             Plugin lastSorter,
-            List<PostProcessorPlugin> postprocessingPlugins,
-            String bom) {
+            List<PostProcessorPlugin> postprocessingPlugins) {
         this(imageBuilder, contentPlugins, lastSorter,
-            postprocessingPlugins, null, bom);
+            postprocessingPlugins, null);
     }
 
     public ImagePluginStack(ImageBuilder imageBuilder,
             List<TransformerPlugin> contentPlugins,
             Plugin lastSorter,
             List<PostProcessorPlugin> postprocessingPlugins,
-            PluginContext ctxt,
-            String bom) {
+            PluginContext ctxt) {
         Objects.requireNonNull(contentPlugins);
         this.lastSorter = lastSorter;
         for (TransformerPlugin p : contentPlugins) {
             Objects.requireNonNull(p);
             if (p instanceof ResourcePrevisitor) {

@@ -202,11 +199,10 @@
             Objects.requireNonNull(p);
             this.postProcessingPlugins.add(p);
         }
         this.imageBuilder = imageBuilder;
         this.release = ctxt != null? ctxt.getReleaseProperties() : new Properties();
-        this.bom = bom;
     }
 
     public void operate(ImageProvider provider) throws Exception {
         ExecutableImage img = provider.retrieve(this);
         List<String> arguments = new ArrayList<>();

@@ -477,11 +473,11 @@
             desc.osVersion().ifPresent(s -> release.put("OS_VERSION", s));
             desc.osArch().ifPresent(s -> release.put("OS_ARCH", s));
         } catch (Exception ignored) {
         }
 
-        imageBuilder.storeFiles(new LastPool(transformed), bom, release);
+        imageBuilder.storeFiles(new LastPool(transformed), release);
     }
 
     public ExecutableImage getExecutableImage() throws IOException {
         return imageBuilder.getExecutableImage();
     }
< prev index next >