File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
opengrok-indexer/src/main/java/org/opengrok/indexer Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -449,6 +449,7 @@ public IAuthorizationPlugin handleLoadClass(String classname) {
449
449
* @throws NoSuchMethodException when the class does not have no-argument constructor
450
450
* @throws InvocationTargetException if the underlying constructor of the class throws an exception
451
451
*/
452
+ @ SuppressWarnings ("rawtypes" )
452
453
private IAuthorizationPlugin loadClass (String classname ) throws ClassNotFoundException ,
453
454
SecurityException ,
454
455
InstantiationException ,
@@ -476,6 +477,7 @@ private IAuthorizationPlugin loadClass(String classname) throws ClassNotFoundExc
476
477
* @param c class
477
478
* @return array of interfaces of the class c
478
479
*/
480
+ @ SuppressWarnings ("rawtypes" )
479
481
protected List <Class > getInterfaces (Class c ) {
480
482
List <Class > interfaces = new LinkedList <>();
481
483
Class self = c ;
@@ -593,7 +595,7 @@ private String getClassName(JarEntry f) {
593
595
* @see IAuthorizationPlugin#unload()
594
596
* @see Configuration#getPluginDirectory()
595
597
*/
596
- @ SuppressWarnings (" unchecked" )
598
+ @ SuppressWarnings ({ "rawtypes" , " unchecked"} )
597
599
public void reload () {
598
600
if (pluginDirectory == null || !pluginDirectory .isDirectory () || !pluginDirectory .canRead ()) {
599
601
LOGGER .log (Level .WARNING , "Plugin directory not found or not readable: {0}. "
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ public class ConfigurationHelp {
52
52
* @return a defined instance
53
53
* @throws RuntimeException if an error occurs producing the sample
54
54
*/
55
+ @ SuppressWarnings ("rawtypes" )
55
56
public static String getSamples ()
56
57
throws RuntimeException {
57
58
@@ -103,6 +104,7 @@ public static String getSamples()
103
104
return b .toString ();
104
105
}
105
106
107
+ @ SuppressWarnings ("rawtypes" )
106
108
private static List <Method > getSetters (Class klass ) {
107
109
List <Method > res = new ArrayList <>();
108
110
Method [] methods = klass .getDeclaredMethods ();
@@ -121,6 +123,7 @@ private static List<Method> getSetters(Class klass) {
121
123
return res ;
122
124
}
123
125
126
+ @ SuppressWarnings ("rawtypes" )
124
127
private static Object getSampleValue (Method setter , Object defaultValue ) {
125
128
126
129
Class paramType = setter .getParameterTypes ()[0 ];
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ private ClassUtil() {
58
58
*
59
59
* @param targetClass the class
60
60
*/
61
+ @ SuppressWarnings ("rawtypes" )
61
62
public static void remarkTransientFields (Class targetClass ) {
62
63
try {
63
64
BeanInfo info ;
@@ -77,7 +78,7 @@ public static void remarkTransientFields(Class targetClass) {
77
78
}
78
79
}
79
80
80
- @ SuppressWarnings (" unchecked" )
81
+ @ SuppressWarnings ({ "rawtypes" , " unchecked"} )
81
82
private static Object stringToObject (String fieldName , Class c , String value ) throws IOException {
82
83
Object v ;
83
84
String paramClass = c .getName ();
You can’t perform that action at this time.
0 commit comments