Skip to content

Commit fcab2a3

Browse files
author
Vladimir Kotal
committed
suppress rawtypes for Class
1 parent 709f59c commit fcab2a3

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

opengrok-indexer/src/test/java/org/opengrok/indexer/analysis/AnalyzerGuruTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ public void rfe3401() {
220220
* Test that matching of full names works. Bug #859.
221221
*/
222222
@Test
223+
@SuppressWarnings("rawtypes")
223224
public void matchesFullName() {
224225
String s = File.separator; // so test works on Unix and Windows
225226
String path = s+"path"+s+"to"+s+"Makefile";
@@ -240,6 +241,7 @@ public void matchesFullName() {
240241
* language + "AnalyzerFactory"
241242
*/
242243
@Test
244+
@SuppressWarnings("rawtypes")
243245
public void getAnalyzerFactoryClass() {
244246
Class fc_forSh = AnalyzerGuru.getFactoryClass("Sh");
245247
Class fc_forShAnalyzer = AnalyzerGuru.getFactoryClass("ShAnalyzer");

opengrok-indexer/src/test/java/org/opengrok/indexer/analysis/LuceneCompatibilityTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public static Test suite() {
8080
* Set up the test environment with repositories and a cache instance.
8181
*/
8282
@Override
83+
@SuppressWarnings("rawtypes")
8384
protected void setUp() throws Exception {
8485
guru = new AnalyzerGuru();
8586
Class<?> c = Class.forName(LUCENE_TEST_CLASS);
@@ -92,6 +93,7 @@ protected void setUp() throws Exception {
9293
protected void tearDown() throws Exception {
9394
}
9495

96+
@SuppressWarnings("rawtypes")
9597
public void testCompatibility() throws Exception, IOException, IllegalAccessException, IllegalArgumentException {
9698
for (Iterator it = guru.getAnalyzerFactories().iterator(); it.hasNext();) {
9799
FileAnalyzerFactory fa = (FileAnalyzerFactory) it.next();

opengrok-indexer/src/test/java/org/opengrok/indexer/authorization/AuthorizationPluginClassLoaderTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ public void testProhibitedNames() {
137137
}
138138

139139
@Test
140+
@SuppressWarnings("rawtypes")
140141
public void testNonExistingPlugin() {
141142
AuthorizationPluginClassLoader instance
142143
= new AuthorizationPluginClassLoader(pluginDirectory);
@@ -145,6 +146,7 @@ public void testNonExistingPlugin() {
145146
}
146147

147148
@Test
149+
@SuppressWarnings("rawtypes")
148150
public void testFalsePlugin() {
149151
AuthorizationPluginClassLoader instance
150152
= new AuthorizationPluginClassLoader(pluginDirectory);
@@ -165,6 +167,7 @@ public void testFalsePlugin() {
165167
}
166168

167169
@Test
170+
@SuppressWarnings("rawtypes")
168171
public void testTruePlugin() {
169172
AuthorizationPluginClassLoader instance
170173
= new AuthorizationPluginClassLoader(pluginDirectory);
@@ -184,6 +187,7 @@ public void testTruePlugin() {
184187
);
185188
}
186189

190+
@SuppressWarnings("rawtypes")
187191
private IAuthorizationPlugin getNewInstance(Class c) {
188192
IAuthorizationPlugin plugin = null;
189193
try {
@@ -198,10 +202,12 @@ private IAuthorizationPlugin getNewInstance(Class c) {
198202
return plugin;
199203
}
200204

205+
@SuppressWarnings("rawtypes")
201206
private Class loadClass(AuthorizationPluginClassLoader loader, String name) {
202207
return loadClass(loader, name, false);
203208
}
204209

210+
@SuppressWarnings("rawtypes")
205211
private Class loadClass(AuthorizationPluginClassLoader loader, String name, boolean shouldFail) {
206212
Class clazz = null;
207213
try {

opengrok-indexer/src/test/java/org/opengrok/indexer/configuration/GroupsTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public void testBasicConfiguration() {
5353
}
5454

5555
@Test
56+
@SuppressWarnings("rawtypes")
5657
public void testDeleteGroup() {
5758
Set<Group> groups = cfg.getGroups();
5859

@@ -76,6 +77,7 @@ public void testDeleteGroup() {
7677
}
7778

7879
@Test
80+
@SuppressWarnings("rawtypes")
7981
public void testAddGroup() {
8082
Set<Group> groups = cfg.getGroups();
8183
Group grp;
@@ -96,6 +98,7 @@ public void testAddGroup() {
9698
}
9799

98100
@Test
101+
@SuppressWarnings("rawtypes")
99102
public void testAddGroupToParent() {
100103
Set<Group> groups = cfg.getGroups();
101104
Group grp;
@@ -125,6 +128,7 @@ public void testAddGroupToParent() {
125128
}
126129

127130
@Test
131+
@SuppressWarnings("rawtypes")
128132
public void testModifyGroup() {
129133
Set<Group> groups = cfg.getGroups();
130134
Group grp;
@@ -163,6 +167,7 @@ public void testMatchGroup() {
163167
}
164168
}
165169

170+
@SuppressWarnings("rawtypes")
166171
private void testSingleMatch(Set<Group> groups, int expectedlines, String match) {
167172
ByteArrayOutputStream os = new ByteArrayOutputStream();
168173
PrintStream out = new PrintStream(os);
@@ -179,6 +184,7 @@ private void testSingleMatch(Set<Group> groups, int expectedlines, String match)
179184
);
180185
}
181186

187+
@SuppressWarnings("rawtypes")
182188
private void invokeMethod(String name, Class[] params, Object[] values) {
183189
try {
184190
Method method = Groups.class.getDeclaredMethod(name, params);

0 commit comments

Comments
 (0)