# HG changeset patch # User František Kučera # Date 1580390354 -3600 # Node ID ecbf6504915c0087611bd4288edcefec950cad37 # Parent a2aa84f310a58c19e43810acb8f05414e1799d04 streamlet examples: encapsulate and hide abstract class fields diff -r a2aa84f310a5 -r ecbf6504915c streamlet-examples/JarInfo.java --- a/streamlet-examples/JarInfo.java Wed Jan 29 20:50:12 2020 +0100 +++ b/streamlet-examples/JarInfo.java Thu Jan 30 14:19:14 2020 +0100 @@ -46,7 +46,7 @@ public static final String ATTRIBUTE_ENTRIES = "entries"; public static final String ATTRIBUTE_MAIN_CLASS = "main_class"; - private List jarAttributes = new LinkedList<>(); + private final List jarAttributes = new LinkedList<>(); public static void main(String[] args) throws IOException { JarInfo s = new JarInfo(); @@ -90,7 +90,7 @@ List result = new LinkedList<>(); try { - JarFile jar = new JarFile(new File(currentFile)); + JarFile jar = new JarFile(new File(getCurrentFile())); for (String attributeName : jarAttributes) { switch (attributeName) { diff -r a2aa84f310a5 -r ecbf6504915c streamlet-examples/Streamlet.java --- a/streamlet-examples/Streamlet.java Wed Jan 29 20:50:12 2020 +0100 +++ b/streamlet-examples/Streamlet.java Thu Jan 30 14:19:14 2020 +0100 @@ -179,12 +179,23 @@ } } - protected List versionsSupported = new LinkedList<>(); - protected List inputAttributes = new ArrayList<>(); - protected List outputAttributeAliases = new ArrayList<>(); - protected List