* changed method signature of {{{PluginRegistry.create()}}} to make it work on javac (possible compiler bug - see: http://bugs.sun.com/view_bug.do?bug_id=6192945)
git-svn-id: svn+ssh://svn.synyx.de/var/svn/synyx/opensource/hera/trunk@3750 5a64d73e-33d6-4ccc-9058-23f8668ecac9
This commit is contained in:
@@ -51,7 +51,7 @@ public class PluginRegistry<T extends Plugin<S>, S> implements Iterable<T> {
|
||||
* @param <S>
|
||||
* @return
|
||||
*/
|
||||
public static <T extends Plugin<S>, S> PluginRegistry<T, S> create() {
|
||||
public static <S, T extends Plugin<S>> PluginRegistry<T, S> create() {
|
||||
|
||||
return new PluginRegistry<T, S>();
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ package org.synyx.hera.core;
|
||||
public class SamplePluginHost {
|
||||
|
||||
private PluginRegistry<SamplePlugin, String> registry =
|
||||
new PluginRegistry<SamplePlugin, String>();
|
||||
PluginRegistry.create();
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user