diff options
| author | Benjamin Culkin <scorpress@gmail.com> | 2024-07-05 12:43:13 -0400 |
|---|---|---|
| committer | Benjamin Culkin <scorpress@gmail.com> | 2024-07-05 12:43:13 -0400 |
| commit | 6d46c473d41c6c47e6b8bd8c676d925e544bd378 (patch) | |
| tree | 796d51bfff52f8f3fa383b2d26847b7c8160677b /projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WODirectActionRequestHandler.java | |
| parent | 02bc52037e9ccccca672d6156d9c325c74fe28b3 (diff) | |
More cleanup
Diffstat (limited to 'projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WODirectActionRequestHandler.java')
| -rw-r--r-- | projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WODirectActionRequestHandler.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WODirectActionRequestHandler.java b/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WODirectActionRequestHandler.java index 77a5428..9a3fcc3 100644 --- a/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WODirectActionRequestHandler.java +++ b/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WODirectActionRequestHandler.java @@ -46,7 +46,7 @@ public class WODirectActionRequestHandler extends WORequestHandler { String className = "DirectAction"; String actionName = "default"; - NSArray path = aRequest.requestHandlerPathArray(); + NSArray<String> path = aRequest.requestHandlerPathArray(); if (path.count() > 0) { className = path.objectAtIndex(0).toString(); if (path.count() > 1) { @@ -85,7 +85,7 @@ public class WODirectActionRequestHandler extends WORequestHandler { try { if (response == null) { - Class c = null; + Class<? extends WODirectAction> c = null; c = application.getLocalClass(className); if ((c == null) && (path.count() == 1)) { actionName = className; @@ -95,7 +95,7 @@ public class WODirectActionRequestHandler extends WORequestHandler { if (c == null) { throw new RuntimeException("Could not find class named \"" + className + "\": "); } - java.lang.reflect.Constructor ctor = c.getConstructor(new Class[] { WORequest.class }); + java.lang.reflect.Constructor<? extends WODirectAction> ctor = c.getConstructor(new Class[] { WORequest.class }); WODirectAction action = (WODirectAction) ctor.newInstance(new Object[] { aRequest }); action.context = context; // HACK: how else can action call pageWithName? |
