Ignore:
Timestamp:
2018-07-06T01:32:11+02:00 (7 years ago)
Author:
Don-vip
Message:

remove deprecated API

Location:
trunk/src/org/openstreetmap/josm/data
Files:
2 edited

Legend:

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

    r13849 r14005  
    238238
    239239    /**
    240      * Returns the user defined preferences directory, containing the preferences.xml file
    241      * @return The user defined preferences directory, containing the preferences.xml file
    242      * @since 7834
    243      * @deprecated use {@link #getPreferencesDirectory(boolean)}
    244      */
    245     @Deprecated
    246     public File getPreferencesDirectory() {
    247         return getPreferencesDirectory(false);
    248     }
    249 
    250     /**
    251      * @param createIfMissing if true, automatically creates this directory,
    252      * in case it is missing
    253      * @return the preferences directory
    254      * @deprecated use {@link #getDirs()} or (more generally) {@link Config#getDirs()}
    255      */
    256     @Deprecated
    257     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 7834
    266      * @deprecated use {@link #getUserDataDirectory(boolean)}
    267      */
    268     @Deprecated
    269     public File getUserDataDirectory() {
    270         return getUserDataDirectory(false);
    271     }
    272 
    273     /**
    274      * @param createIfMissing if true, automatically creates this directory,
    275      * in case it is missing
    276      * @return the user data directory
    277      * @deprecated use {@link #getDirs()} or (more generally) {@link Config#getDirs()}
    278      */
    279     @Deprecated
    280     public File getUserDataDirectory(boolean createIfMissing) {
    281         return dirs.getUserDataDirectory(createIfMissing);
    282     }
    283 
    284     /**
    285240     * Returns the user preferences file (preferences.xml).
    286241     * @return The user preferences file (preferences.xml)
     
    304259    public File getPluginsDirectory() {
    305260        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 directory
    314      * @deprecated use {@link #getCacheDirectory(boolean)}
    315      */
    316     @Deprecated
    317     public File getCacheDirectory() {
    318         return getCacheDirectory(true);
    319     }
    320 
    321     /**
    322      * @param createIfMissing if true, automatically creates this directory,
    323      * in case it is missing
    324      * @return the cache directory
    325      * @deprecated use {@link #getDirs()} or (more generally) {@link Config#getDirs()}
    326      */
    327     @Deprecated
    328     public File getCacheDirectory(boolean createIfMissing) {
    329         return dirs.getCacheDirectory(createIfMissing);
    330261    }
    331262
  • trunk/src/org/openstreetmap/josm/data/osm/Tag.java

    r13625 r14005  
    1010
    1111import org.openstreetmap.josm.tools.CheckParameterUtil;
    12 import org.openstreetmap.josm.tools.Utils;
    1312
    1413/**
     
    141140
    142141    /**
    143      * Removes leading, trailing, and multiple inner whitespaces from the given string, to be used as a key or value.
    144      * @param s The string
    145      * @return The string without leading, trailing or multiple inner whitespaces
    146      * @since 6699
    147      * @deprecated since 13597. Use {@link Utils#removeWhiteSpaces(String)} instead
    148      */
    149     @Deprecated
    150     public static String removeWhiteSpaces(String s) {
    151         return Utils.removeWhiteSpaces(s);
    152     }
    153 
    154     /**
    155142     * Unsupported.
    156143     * @param keys ignored
Note: See TracChangeset for help on using the changeset viewer.