9
9
import org .slf4j .Logger ;
10
10
import org .slf4j .LoggerFactory ;
11
11
12
- import ng .appserver .NGElement ;
13
12
import ng .appserver .elements .NGActionURL ;
14
13
import ng .appserver .elements .NGBrowser ;
15
14
import ng .appserver .elements .NGComponentContent ;
@@ -49,7 +48,7 @@ public class NGElementUtils {
49
48
/**
50
49
* Classes registered to be searchable by classWithName()
51
50
*/
52
- private static final List <Class <? extends NGElement >> _classes = new ArrayList <>();
51
+ private static final List <Class <?>> _classes = new ArrayList <>();
53
52
54
53
/**
55
54
* A mapping of shortcuts to element classes. For example, mapping of <wo:str /> to <wo:NGString />
@@ -84,7 +83,7 @@ public class NGElementUtils {
84
83
/**
85
84
* Add a class to make searchable by it's simpleName, full class name or any of the given shortcuts (for tags)
86
85
*/
87
- public static void addClass ( final Class <? extends NGElement > clazz , final String ... shortcuts ) {
86
+ public static void addClass ( final Class <?> clazz , final String ... shortcuts ) {
88
87
_classes .add ( clazz );
89
88
90
89
for ( String shortcut : shortcuts ) {
@@ -99,12 +98,12 @@ public static void addPackage( final String packageName ) {
99
98
/**
100
99
* @return A class matching classNameToSearch for. Searches by fully qualified class name and simpleName.
101
100
*/
102
- private static Class classWithName ( String classNameToSearchFor ) {
101
+ private static Class <?> classWithName ( String classNameToSearchFor ) {
103
102
Objects .requireNonNull ( classNameToSearchFor );
104
103
105
104
logger .debug ( "Searching for class '{}'" , classNameToSearchFor );
106
105
107
- for ( Class c : _classes ) {
106
+ for ( Class <?> c : _classes ) {
108
107
if ( c .getName ().equals ( classNameToSearchFor ) || c .getSimpleName ().equals ( classNameToSearchFor ) ) {
109
108
return c ;
110
109
}
0 commit comments