UIDefaultsDump: removed Java 8 patch version from dump file names

This commit is contained in:
Karl Tauber
2021-10-28 21:01:16 +02:00
parent ef25575f85
commit 5e03eb9b51
15 changed files with 2 additions and 0 deletions

View File

@@ -199,6 +199,8 @@ public class UIDefaultsDump
? "-linux"
: "");
String javaVersion = System.getProperty( "java.version" );
if( javaVersion.startsWith( "1.8.0_" ) && lookAndFeel instanceof FlatLaf )
javaVersion = "1.8.0";
File file = new File( dir, name + nameSuffix + "_"
+ javaVersion + osSuffix + ".txt" );