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

remove deprecated API

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.