Skip to content
Browse files

explicit type params in places

  • Loading branch information...
1 parent 6971b0f commit 546e41bd32acc5214bd0c30f19881919e00ed76c @brianm brianm committed Apr 18, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/main/java/com/ning/atlas/plugin/StaticPluginSystem.java
View
6 src/main/java/com/ning/atlas/plugin/StaticPluginSystem.java
@@ -129,7 +129,7 @@ public void registerInstallerConfig(String prefix, Map<String, String> args)
Class<? extends Provisioner> type = provisioners.get(provisioner);
Map<String, String> args = provisionerConfigs.get(provisioner);
try {
- return Maybe.definitely(Instantiator.create(type, args));
+ return Maybe.<Provisioner>definitely(Instantiator.create(type, args));
}
catch (Exception e) {
throw new IllegalStateException("Unable to instantiate provisioner " + provisioner, e);
@@ -147,7 +147,7 @@ public void registerInstallerConfig(String prefix, Map<String, String> args)
Class<? extends LifecycleListener> type = listeners.get(prefix);
Map<String, String> args = listenerConfigs.get(prefix);
try {
- return Maybe.definitely(Instantiator.create(type, args));
+ return Maybe.<LifecycleListener>definitely(Instantiator.create(type, args));
}
catch (Exception e) {
throw new IllegalStateException("Unable to instantiate listener " + prefix, e);
@@ -165,7 +165,7 @@ public void registerInstallerConfig(String prefix, Map<String, String> args)
Class<? extends Installer> type = installers.get(scheme);
Map<String, String> args = installerConfigs.get(scheme);
try {
- return Maybe.definitely(Instantiator.create(type, args));
+ return Maybe.<Installer>definitely(Instantiator.create(type, args));
}
catch (Exception e) {
throw new IllegalStateException("Unable to instantiate installer " + scheme, e);

0 comments on commit 546e41b

Please sign in to comment.
Something went wrong with that request. Please try again.