Ignore:
Timestamp:
2014-02-14T12:03:27+01:00 (10 years ago)
Author:
Don-vip
Message:

see #9710 - enable OAuth debug output with --debug + single endpoint to change system properties

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/Preferences.java

    r6798 r6851  
    12881288    }
    12891289
    1290     private void updateSystemProperty(String key, String value) {
     1290    /**
     1291     * Updates a given system property.
     1292     * @param key The property key
     1293     * @param value The property value
     1294     * @return the previous value of the system property, or {@code null} if it did not have one.
     1295     * @since 6851
     1296     */
     1297    public static String updateSystemProperty(String key, String value) {
    12911298        if (value != null) {
    12921299            String old = System.setProperty(key, value);
    12931300            Main.debug("System property '"+key+"' set to '"+value+"'. Old value was '"+old+"'");
    1294         }
     1301            return old;
     1302        }
     1303        return null;
    12951304    }
    12961305
Note: See TracChangeset for help on using the changeset viewer.