Changeset 14005 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2018-07-06T01:32:11+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r13849 r14005 238 238 239 239 /** 240 * Returns the user defined preferences directory, containing the preferences.xml file241 * @return The user defined preferences directory, containing the preferences.xml file242 * @since 7834243 * @deprecated use {@link #getPreferencesDirectory(boolean)}244 */245 @Deprecated246 public File getPreferencesDirectory() {247 return getPreferencesDirectory(false);248 }249 250 /**251 * @param createIfMissing if true, automatically creates this directory,252 * in case it is missing253 * @return the preferences directory254 * @deprecated use {@link #getDirs()} or (more generally) {@link Config#getDirs()}255 */256 @Deprecated257 public File getPreferencesDirectory(boolean createIfMissing) {258 return dirs.getPreferencesDirectory(createIfMissing);259 }260 261 /**262 * Returns the user data directory, containing autosave, plugins, etc.263 * Depending on the OS it may be the same directory as preferences directory.264 * @return The user data directory, containing autosave, plugins, etc.265 * @since 7834266 * @deprecated use {@link #getUserDataDirectory(boolean)}267 */268 @Deprecated269 public File getUserDataDirectory() {270 return getUserDataDirectory(false);271 }272 273 /**274 * @param createIfMissing if true, automatically creates this directory,275 * in case it is missing276 * @return the user data directory277 * @deprecated use {@link #getDirs()} or (more generally) {@link Config#getDirs()}278 */279 @Deprecated280 public File getUserDataDirectory(boolean createIfMissing) {281 return dirs.getUserDataDirectory(createIfMissing);282 }283 284 /**285 240 * Returns the user preferences file (preferences.xml). 286 241 * @return The user preferences file (preferences.xml) … … 304 259 public File getPluginsDirectory() { 305 260 return new File(dirs.getUserDataDirectory(false), "plugins"); 306 }307 308 /**309 * Get the directory where cached content of any kind should be stored.310 *311 * If the directory doesn't exist on the file system, it will be created by this method.312 *313 * @return the cache directory314 * @deprecated use {@link #getCacheDirectory(boolean)}315 */316 @Deprecated317 public File getCacheDirectory() {318 return getCacheDirectory(true);319 }320 321 /**322 * @param createIfMissing if true, automatically creates this directory,323 * in case it is missing324 * @return the cache directory325 * @deprecated use {@link #getDirs()} or (more generally) {@link Config#getDirs()}326 */327 @Deprecated328 public File getCacheDirectory(boolean createIfMissing) {329 return dirs.getCacheDirectory(createIfMissing);330 261 } 331 262 -
trunk/src/org/openstreetmap/josm/data/osm/Tag.java
r13625 r14005 10 10 11 11 import org.openstreetmap.josm.tools.CheckParameterUtil; 12 import org.openstreetmap.josm.tools.Utils;13 12 14 13 /** … … 141 140 142 141 /** 143 * Removes leading, trailing, and multiple inner whitespaces from the given string, to be used as a key or value.144 * @param s The string145 * @return The string without leading, trailing or multiple inner whitespaces146 * @since 6699147 * @deprecated since 13597. Use {@link Utils#removeWhiteSpaces(String)} instead148 */149 @Deprecated150 public static String removeWhiteSpaces(String s) {151 return Utils.removeWhiteSpaces(s);152 }153 154 /**155 142 * Unsupported. 156 143 * @param keys ignored
Note:
See TracChangeset
for help on using the changeset viewer.