Reduce visibility of misleading install function

This install function might be mistaken to really install this plugin,
whereas it only sets its internal status and does not really do smth.
This commit is contained in:
Rene Pfeuffer
2019-11-20 11:14:58 +01:00
parent 1d2888f8e6
commit 4f43bce90e

View File

@@ -25,7 +25,7 @@ public class AvailablePlugin implements Plugin {
return pending;
}
public AvailablePlugin install() {
AvailablePlugin install() {
Preconditions.checkState(!pending, "installation is already pending");
return new AvailablePlugin(pluginDescriptor, true);
}