JAL-3235 added the saveProperties call to setProperty method bug/JAL-3235sortPropertiesJava9
authorBen Soares <bsoares@dundee.ac.uk>
Wed, 4 Mar 2020 14:29:59 +0000 (14:29 +0000)
committerBen Soares <bsoares@dundee.ac.uk>
Wed, 4 Mar 2020 14:29:59 +0000 (14:29 +0000)
src/jalview/bin/Cache.java

index f40fc61..6f9614e 100755 (executable)
@@ -638,9 +638,7 @@ public class Cache
       oldValue = applicationProperties.setProperty(key, obj);
       if (!propsAreReadOnly)
       {
-        FileOutputStream out = new FileOutputStream(propertiesFile);
-        applicationProperties.store(out, "---JalviewX Properties File---");
-        out.close();
+        saveProperties();
       }
     } catch (Exception ex)
     {