< prev index next >
src/java.desktop/share/classes/sun/awt/DebugSettings.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 160,170 ****
String propPath;
Properties fileProps;
// check if the user specified a particular settings file
propPath = System.getProperty(PREFIX + "." + PROP_FILE, "");
! if (propPath.equals("")) {
// otherwise get it from the user's home directory
propPath = System.getProperty("user.home", "") +
File.separator +
PREFIX + "." + PROP_FILE;
}
--- 160,170 ----
String propPath;
Properties fileProps;
// check if the user specified a particular settings file
propPath = System.getProperty(PREFIX + "." + PROP_FILE, "");
! if (propPath.isEmpty()) {
// otherwise get it from the user's home directory
propPath = System.getProperty("user.home", "") +
File.separator +
PREFIX + "." + PROP_FILE;
}
< prev index next >