equal
deleted
inserted
replaced
574 |
574 |
575 /* |
575 /* |
576 * Returns the Manifest for the specified JAR file name. |
576 * Returns the Manifest for the specified JAR file name. |
577 */ |
577 */ |
578 private static Manifest loadManifest(String fn) { |
578 private static Manifest loadManifest(String fn) { |
579 try { |
579 try (FileInputStream fis = new FileInputStream(fn); |
580 FileInputStream fis = new FileInputStream(fn); |
580 JarInputStream jis = new JarInputStream(fis, false)) |
581 JarInputStream jis = new JarInputStream(fis, false); |
581 { |
582 Manifest man = jis.getManifest(); |
582 return jis.getManifest(); |
583 jis.close(); |
|
584 return man; |
|
585 } catch (IOException e) { |
583 } catch (IOException e) { |
586 return null; |
584 return null; |
587 } |
585 } |
588 } |
586 } |
589 |
587 |