Skip to content

Commit 529be39

Browse files
committed
codacy issues
1 parent bc5f788 commit 529be39

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

commons/src/main/java/tech/beshu/ror/commons/utils/ReflecUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import java.security.AccessController;
2929
import java.security.PrivilegedAction;
3030
import java.util.HashMap;
31-
import java.util.Map;
3231
import java.util.Set;
3332
import java.util.function.Function;
3433

@@ -55,7 +54,7 @@ public static Object invokeMethodCached(Object o, Class c, String method) {
5554
m = c.getDeclaredMethod(method);
5655
m.setAccessible(true);
5756
methodsCache.put(cacheKey, m);
58-
return m.invoke(o);
57+
return m.invoke(o);
5958
} catch (Exception e) {
6059
e.printStackTrace();
6160
return null;

es61x/src/main/java/tech/beshu/ror/es/ReadonlyRestPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public class ReadonlyRestPlugin extends Plugin
7373

7474
private final Settings settings;
7575

76-
IndexLevelActionFilter ilaf;
76+
private IndexLevelActionFilter ilaf;
7777
private SettingsObservableImpl settingsObservable;
7878
private Environment environment;
7979

es61x/src/main/java/tech/beshu/ror/es/ThreadRepo.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,13 @@
1717

1818
package tech.beshu.ror.es;
1919

20-
import org.elasticsearch.common.inject.Inject;
2120
import org.elasticsearch.rest.RestChannel;
22-
import org.elasticsearch.transport.TransportService;
2321

2422
/**
2523
* Created by sscarduzio on 25/11/2016.
2624
*/
2725
public class ThreadRepo {
2826

29-
public static TransportService transportService;
3027
public static ThreadLocal<RestChannel> channel = new ThreadLocal<>();
3128

32-
@Inject
33-
public ThreadRepo(TransportService ts) {
34-
transportService = ts;
35-
System.out.println(ts.getClass().getSimpleName());
36-
}
37-
3829
}

0 commit comments

Comments
 (0)