You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by br...@apache.org on 2016/09/11 13:55:47 UTC

[2/2] [lang] Sort JavaDoc tags

Sort JavaDoc tags


Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/d772e171
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/d772e171
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/d772e171

Branch: refs/heads/master
Commit: d772e171d64c9dc617f16cbb8475d13792538e15
Parents: 291eaf1
Author: Benedikt Ritter <br...@apache.org>
Authored: Sun Sep 11 15:55:40 2016 +0200
Committer: Benedikt Ritter <br...@apache.org>
Committed: Sun Sep 11 15:55:40 2016 +0200

----------------------------------------------------------------------
 .../commons/lang3/exception/ExceptionUtils.java | 21 +++++++++-----------
 1 file changed, 9 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/d772e171/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java b/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java
index 9a5f5a8..4fc6774 100644
--- a/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java
+++ b/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java
@@ -743,9 +743,6 @@ public class ExceptionUtils {
      * techniques are required when interacting with non-java jvm code such as
      * Jyton, Scala, or Groovy, since these languages do not consider any
      * exceptions as checked.
-     * 
-     * @since 3.5
-     * @see #wrapAndThrow(Throwable)
      *
      * @param throwable
      *            The throwable to rethrow.
@@ -754,6 +751,8 @@ public class ExceptionUtils {
      *         which the calling site requires. "Returning" the results of this
      *         method, as done in the propagateExample above, will satisfy the
      *         java compiler requirement that all code paths return a value.
+     * @since 3.5
+     * @see #wrapAndThrow(Throwable)
      */
     public static <R> R rethrow(Throwable throwable) {
         // claim that the typeErasure invocation throws a RuntimeException
@@ -780,11 +779,7 @@ public class ExceptionUtils {
      * The downside to using this approach is that invoking code which needs to
      * handle specific checked exceptions must sniff up the exception chain to
      * determine if the caught exception was caused by the checked exception.
-     * 
-     * @since 3.5
-     * @see #rethrow(Throwable)
-     * @see #hasCause(Throwable, Class)
-     * 
+     *
      * @param throwable
      *            The throwable to rethrow.
      * @param <R> The type of the returned value.
@@ -792,6 +787,9 @@ public class ExceptionUtils {
      *         which the calling site requires. "Returning" the results of this
      *         method will satisfy the java compiler requirement that all code
      *         paths return a value.
+     * @since 3.5
+     * @see #rethrow(Throwable)
+     * @see #hasCause(Throwable, Class)
      */
     public static <R> R wrapAndThrow(Throwable throwable) {
         if (throwable instanceof RuntimeException) {
@@ -806,16 +804,15 @@ public class ExceptionUtils {
     /**
      * Does the throwable's causal chain have an immediate or wrapped exception
      * of the given type?
-     * 
-     * @since 3.5
-     * @see #wrapAndThrow(Throwable)
-     * 
+     *
      * @param chain
      *            The root of a Throwable causal chain.
      * @param type
      *            The exception type to test.
      * @return true, if chain is an instance of type or is an
      *         UndeclaredThrowableException wrapping a cause.
+     * @since 3.5
+     * @see #wrapAndThrow(Throwable)
      */
     public static boolean hasCause(Throwable chain,
             Class<? extends Throwable> type) {