Skip to content

Commit

Permalink
explicit type params in places
Browse files Browse the repository at this point in the history
  • Loading branch information
brianm committed Apr 18, 2012
1 parent 6971b0f commit 546e41b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/ning/atlas/plugin/StaticPluginSystem.java
Expand Up @@ -129,7 +129,7 @@ public Maybe<Provisioner> findProvisioner(String provisioner)
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);
Expand All @@ -147,7 +147,7 @@ public Maybe<LifecycleListener> findListener(String prefix)
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);
Expand All @@ -165,7 +165,7 @@ public Maybe<Installer> findInstaller(String scheme)
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);
Expand Down

0 comments on commit 546e41b

Please sign in to comment.