Skip to content

Commit

Permalink
Better Deprecated Settings Writing
Browse files Browse the repository at this point in the history
  • Loading branch information
Konloch committed Oct 5, 2024
1 parent 998183a commit 5cf85f7
Showing 1 changed file with 25 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

public class SettingsSerializer
{
private static final String DEPRECATED = "deprecated";
private static boolean settingsFileExists;
private static String[] settings;

Expand Down Expand Up @@ -134,39 +135,39 @@ public static synchronized void saveSettings()
save(BytecodeViewer.viewer.excludeNestedTypes.isSelected());
save(BytecodeViewer.viewer.appendBracketsToLabels.isSelected());
save(BytecodeViewer.viewer.debugHelpers.isSelected());
save("deprecated");
save(DEPRECATED);
save(BytecodeViewer.viewer.updateCheck.isSelected());
save(BytecodeViewer.viewer.viewPane1.getSelectedDecompiler().ordinal());
save(BytecodeViewer.viewer.viewPane2.getSelectedDecompiler().ordinal());
save(BytecodeViewer.viewer.viewPane3.getSelectedDecompiler().ordinal());
save(BytecodeViewer.viewer.refreshOnChange.isSelected());
save(BytecodeViewer.viewer.isMaximized);
save("deprecated");
save("deprecated");
save(DEPRECATED);
save(DEPRECATED);
save(Configuration.lastOpenDirectory);
save(Configuration.python2);
save(Configuration.rt);
save("deprecated");
save("deprecated");
save("deprecated");
save("deprecated");
save("deprecated");
save("deprecated");
save("deprecated");
save("deprecated");
save("deprecated");
save("deprecated");
save("deprecated");
save("deprecated");
save("deprecated");
save("deprecated");
save("deprecated");
save(DEPRECATED);
save(DEPRECATED);
save(DEPRECATED);
save(DEPRECATED);
save(DEPRECATED);
save(DEPRECATED);
save(DEPRECATED);
save(DEPRECATED);
save(DEPRECATED);
save(DEPRECATED);
save(DEPRECATED);
save(DEPRECATED);
save(DEPRECATED);
save(DEPRECATED);
save(DEPRECATED);
save(BytecodeViewer.viewer.decodeAPKResources.isSelected());
save(Configuration.library);
save(Configuration.pingback);
save("deprecated");
save("deprecated");
save("deprecated");
save(DEPRECATED);
save(DEPRECATED);
save(DEPRECATED);
save(BytecodeViewer.viewer.getFontSize());
save(Configuration.deleteForeignLibraries);

Expand All @@ -186,7 +187,7 @@ else if (BytecodeViewer.viewer.apkConversionGroup.isSelected(BytecodeViewer.view
save(BytecodeViewer.viewer.synchronizedViewing.isSelected());
save(BytecodeViewer.viewer.showClassMethods.isSelected());
save(BytecodeViewer.viewer.ren.isSelected());
save("deprecated");
save(DEPRECATED);

save(Configuration.lafTheme.name());
save(Configuration.rstaTheme.name());
Expand All @@ -198,8 +199,8 @@ else if (BytecodeViewer.viewer.apkConversionGroup.isSelected(BytecodeViewer.view
save(BytecodeViewer.viewer.viewPane3.isPaneEditable());

save(Configuration.javaTools);
save("deprecated");
save("deprecated");
save(DEPRECATED);
save(DEPRECATED);
save(Configuration.lastSaveDirectory);
save(Configuration.lastPluginDirectory);
save(Configuration.python2Extra);
Expand Down

0 comments on commit 5cf85f7

Please sign in to comment.