struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [1/4] struts git commit: Adds proper deprecation note
Date Sun, 21 Dec 2014 19:48:28 GMT
Repository: struts
Updated Branches:
  refs/heads/develop 5551a9bb6 -> 702738693


Adds proper deprecation note


Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/3288096c
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/3288096c
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/3288096c

Branch: refs/heads/develop
Commit: 3288096c2b33a35d5cfa18fc75f19d9ad3b7b60f
Parents: 5551a9b
Author: Lukasz Lenart <lukaszlenart@apache.org>
Authored: Sat Dec 20 08:55:55 2014 +0100
Committer: Lukasz Lenart <lukaszlenart@apache.org>
Committed: Sat Dec 20 08:55:55 2014 +0100

----------------------------------------------------------------------
 .../src/main/java/com/opensymphony/xwork2/UnknownHandler.java   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/3288096c/xwork-core/src/main/java/com/opensymphony/xwork2/UnknownHandler.java
----------------------------------------------------------------------
diff --git a/xwork-core/src/main/java/com/opensymphony/xwork2/UnknownHandler.java b/xwork-core/src/main/java/com/opensymphony/xwork2/UnknownHandler.java
index 8e9303a..faabfc0 100644
--- a/xwork-core/src/main/java/com/opensymphony/xwork2/UnknownHandler.java
+++ b/xwork-core/src/main/java/com/opensymphony/xwork2/UnknownHandler.java
@@ -54,7 +54,10 @@ public interface UnknownHandler {
      * @param action The action object
      * @param methodName The method name to call
      * @return The result returned from invoking the action method, can return <tt>null</tt>
-     * @throws NoSuchMethodException If the method cannot be found (deprecated) - should
return nunll instead
+     * @deprecated @throws NoSuchMethodException If the method cannot be found should return
null instead,
+     *                                           don't throw exception as other UnknownHandles
won't be invoked
+     *                                           'throws NoSuchMethodException' signature
will be removed with next
+     *                                           major release
      */
 	public Object handleUnknownActionMethod(Object action, String methodName) throws NoSuchMethodException;
 }


Mime
View raw message