Skip to content

Commit 310e384

Browse files
author
Vladimir Kotal
committed
more rawtypes
1 parent 2a635d3 commit 310e384

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/authorization/AuthorizationPluginClassLoader.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
*/
4444
public class AuthorizationPluginClassLoader extends ClassLoader {
4545

46+
@SuppressWarnings("rawtypes")
4647
private final Map<String, Class> cache = new HashMap<>();
4748

4849
private static final Logger LOGGER = LoggerFactory.getLogger(AuthorizationPluginClassLoader.class);
@@ -72,6 +73,7 @@ public AuthorizationPluginClassLoader(File directory) {
7273
this.directory = directory;
7374
}
7475

76+
@SuppressWarnings("rawtypes")
7577
private Class loadClassFromJar(String classname) throws ClassNotFoundException {
7678
File[] jars = directory.listFiles(new FilenameFilter() {
7779
@Override
@@ -112,6 +114,7 @@ public boolean accept(File dir, String name) {
112114
throw new ClassNotFoundException("Class \"" + classname + "\" could not be found");
113115
}
114116

117+
@SuppressWarnings("rawtypes")
115118
private Class loadClassFromFile(String classname) throws ClassNotFoundException {
116119
try {
117120
String filename = classname.replace('.', File.separatorChar) + ".class";
@@ -218,6 +221,7 @@ public Class<?> loadClass(String name) throws ClassNotFoundException, SecurityEx
218221
* @throws SecurityException if the loader cannot access the class
219222
*/
220223
@Override
224+
@SuppressWarnings("rawtypes")
221225
public Class loadClass(String name, boolean resolveIt) throws ClassNotFoundException, SecurityException {
222226
Class c;
223227

opengrok-indexer/src/main/java/org/opengrok/indexer/util/OptionParser.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@
7676
public class OptionParser {
7777

7878
// Used to hold data type converters
79+
@SuppressWarnings("rawtypes")
7980
static private HashMap<Class,DataParser> converters = new HashMap<>();
80-
81+
82+
@SuppressWarnings("rawtypes")
8183
static class DataParser {
8284
Class dataType;
8385
Function<String,Object> converter;
@@ -262,6 +264,7 @@ private static Boolean parseVerity(String text) {
262264
* @param parser is the conversion code that will take the given
263265
* option value string and produce the named data type.
264266
*/
267+
@SuppressWarnings("rawtypes")
265268
public static void accept(Class type, Function<String,Object> parser) {
266269
converters.put(type, new DataParser(type, parser));
267270
}

suggester/src/main/java/org/opengrok/suggest/popular/impl/chronicle/BytesRefSizedReader.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ private BytesRefSizedReader() {
4646

4747
@NotNull
4848
@Override
49+
@SuppressWarnings("rawtypes")
4950
public BytesRef read(Bytes in, long size, @Nullable BytesRef using) {
5051
if (size < 0L || size > (long) Integer.MAX_VALUE) {
5152
throw new IORuntimeException("byte[] size should be non-negative int, " +

0 commit comments

Comments
 (0)