29
29
import java .net .URI ;
30
30
import java .net .URISyntaxException ;
31
31
import java .net .URL ;
32
- import java .nio .file .Files ;
33
- import java .nio .file .InvalidPathException ;
34
- import java .nio .file .Path ;
35
- import java .nio .file .Paths ;
32
+ import java .nio .file .*;
36
33
import java .util .LinkedList ;
37
34
import java .util .List ;
38
35
import java .util .prefs .Preferences ;
45
42
public class Options {
46
43
47
44
// the release version
48
- public static final String RELEASE_VERSION = "7.1.0 " ;
45
+ public static final String RELEASE_VERSION = "7.1.1 " ;
49
46
50
47
// the copyright
51
48
public static final String COPYRIGHT = "Copyright (C) 1999-2024 University of Bremen & " +
@@ -86,9 +83,9 @@ public class Options {
86
83
*/
87
84
public static String USE_HISTORY_PATH = ".use_history" ;
88
85
89
- public static String LINE_SEPARATOR = System .getProperty ( "line.separator" );
86
+ public static String LINE_SEPARATOR = System .lineSeparator ( );
90
87
91
- public static String FILE_SEPARATOR = System . getProperty ( "file.separator" );
88
+ public static String FILE_SEPARATOR = FileSystems . getDefault (). getSeparator ( );
92
89
93
90
/**
94
91
* Name of the property giving the path to the monitor aspect template.
@@ -302,8 +299,8 @@ private static void printHelp() {
302
299
*/
303
300
public static void resetOptions () {
304
301
USE_HISTORY_PATH = ".use_history" ;
305
- LINE_SEPARATOR = System .getProperty ( "line.separator" );
306
- FILE_SEPARATOR = System . getProperty ( "file.separator" );
302
+ LINE_SEPARATOR = System .lineSeparator ( );
303
+ FILE_SEPARATOR = FileSystems . getDefault (). getSeparator ( );
307
304
MONITOR_ASPECT_TEMPLATE = null ;
308
305
homeDir = null ;
309
306
compileOnly = false ;
@@ -318,12 +315,12 @@ public static void resetOptions() {
318
315
explicitVariableDeclarations = true ;
319
316
checkTransitions = true ;
320
317
checkStateInvariants = false ;
321
- WarningType checkWarningsOclAnyInCollections = WarningType .WARN ;
322
- WarningType checkWarningsUnrelatedTypes = WarningType .WARN ;
318
+ checkWarningsOclAnyInCollections = WarningType .WARN ;
319
+ checkWarningsUnrelatedTypes = WarningType .WARN ;
323
320
doPLUGIN = true ;
324
321
pluginDir = null ;
325
322
fDiagramDimension = new Dimension ( 600 , 600 );
326
- TypedProperties props = null ;
323
+ props = null ;
327
324
specFilename = null ;
328
325
cmdFilename = null ;
329
326
lastDirectory = Paths .get (System .getProperty ("user.dir" ));
0 commit comments