Skip to content
Browse files

[#1091] don't repeat logic in Java.invokeChildOrStatic

  • Loading branch information...
1 parent d286e9f commit 6c2fefbd0c0e9d4a7aa7741901027a8708124a42 Georg Engel committed
Showing with 2 additions and 8 deletions.
  1. +2 −8 modules/secure/app/controllers/Secure.java
View
10 modules/secure/app/controllers/Secure.java
@@ -182,15 +182,9 @@ static void onCheckFailed(String profile) {
}
private static Object invoke(String m, Object... args) throws Throwable {
- Class security = null;
- List<Class> classes = Play.classloader.getAssignableClasses(Security.class);
- if(classes.size() == 0) {
- security = Security.class;
- } else {
- security = classes.get(0);
- }
+
try {
- return Java.invokeStaticOrParent(security, m, args);
+ return Java.invokeChildOrStatic(Security.class, m, args);
} catch(InvocationTargetException e) {
throw e.getTargetException();
}

0 comments on commit 6c2fefb

Please sign in to comment.
Something went wrong with that request. Please try again.