Skip to content

Commit

Permalink
🗑️ Add deprecated methods for legacy options
Browse files Browse the repository at this point in the history
As basically all of Fred is public API, someone might actually use these
methods.
  • Loading branch information
Bombe committed Sep 9, 2023
1 parent 462cdde commit 7c6f333
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/freenet/pluginmanager/PluginManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,33 @@ public PluginInfoWrapper startPluginOfficial(final String pluginname, boolean st
return startPluginOfficial(pluginname, store, officialPlugins.get(pluginname));
}

/**
* Use {@link #startPluginOfficial(String, boolean)}.
*
* @param force This parameter is ignored.
* @param forceHTTPS This parameter is ignored.
*/
@Deprecated
public PluginInfoWrapper startPluginOfficial(final String pluginname, boolean store, boolean force, boolean forceHTTPS) {
return startPluginOfficial(pluginname, store);
}

public PluginInfoWrapper startPluginOfficial(final String pluginname, boolean store, OfficialPluginDescription desc) {
return realStartPlugin(new PluginDownLoaderOfficialFreenet(client, node, false),
pluginname, store, desc.alwaysFetchLatestVersion);
}

/**
* Use {@link #startPluginOfficial(String, boolean, OfficialPluginDescription)}.
*
* @param force This parameter is ignored.
* @param forceHTTPS This parameter is ignored.
*/
@Deprecated
public PluginInfoWrapper startPluginOfficial(final String pluginname, boolean store, OfficialPluginDescription officialPluginDescription, boolean force, boolean forceHTTPS) {
return startPluginOfficial(pluginname, store, officialPluginDescription);
}

public PluginInfoWrapper startPluginFile(final String filename, boolean store) {
return realStartPlugin(new PluginDownLoaderFile(), filename, store, false);
}
Expand Down

0 comments on commit 7c6f333

Please sign in to comment.