You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2020/01/05 17:25:39 UTC

[isis] 01/02: ISIS-2158: correcting java-doc

This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git

commit 87d5b2626943c0e5ad3440b3503a987f5555038a
Author: Andi Huber <ah...@apache.org>
AuthorDate: Sun Jan 5 16:47:40 2020 +0100

    ISIS-2158: correcting java-doc
---
 .../org/apache/isis/commons/internal/exceptions/_Exceptions.java  | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/core/commons/src/main/java/org/apache/isis/commons/internal/exceptions/_Exceptions.java b/core/commons/src/main/java/org/apache/isis/commons/internal/exceptions/_Exceptions.java
index 974396d..46ea01a 100644
--- a/core/commons/src/main/java/org/apache/isis/commons/internal/exceptions/_Exceptions.java
+++ b/core/commons/src/main/java/org/apache/isis/commons/internal/exceptions/_Exceptions.java
@@ -62,17 +62,16 @@ public final class _Exceptions {
     /**
      * Most likely to be used in switch statements to handle the default case.
      * @param _case the unmatched case to be reported
-     * @return
+     * @return new IllegalArgumentException
      */
     public static final IllegalArgumentException unmatchedCase(@Nullable Object _case) {
         return new IllegalArgumentException("internal error: unmatched case in switch statement: "+_case);
     }
 
     /**
-     * Most likely to be used in switch statements to handle the default case.
      * @param format like in {@link java.lang.String#format(String, Object...)}
-     * @param _case the unmatched case to be reported
-     * @return
+     * @param args
+     * @return new IllegalArgumentException
      */
     public static final IllegalArgumentException illegalArgument(
             final String format,
@@ -88,7 +87,6 @@ public final class _Exceptions {
         return new IllegalStateException(String.format(format, args));
     }
 
-
     public static final NoSuchElementException noSuchElement(String msg) {
         return new NoSuchElementException(msg);
     }