You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/06/23 20:04:10 UTC

[commons-rdf] branch master updated (b5f2fefe -> 4afd8121)

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

ggregory pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rdf.git


    from b5f2fefe Merge pull request #134 from apache/dependabot/github_actions/actions/checkout-3.5.3
     new cda37448 [main] Throw a specialized RuntimeException instead of RuntimeException
     new 4afd8121 [test] Throw a specialized RuntimeException instead of RuntimeException

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../src/test/java/org/apache/commons/rdf/api/AbstractRDFTest.java       | 2 +-
 .../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


[commons-rdf] 01/02: [main] Throw a specialized RuntimeException instead of RuntimeException

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rdf.git

commit cda374487c1d65b9917e8be563f5ab448debcfac
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jun 23 15:48:15 2023 -0400

    [main] Throw a specialized RuntimeException instead of
    RuntimeException
---
 .../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.java b/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.java
index a066330d..40cbcb25 100644
--- a/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.java
+++ b/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.java
@@ -223,7 +223,7 @@ public abstract class AbstractRDFParser<T extends AbstractRDFParser<T>> implemen
         try {
             return (T) super.clone();
         } catch (final CloneNotSupportedException e) {
-            throw new RuntimeException(e);
+            throw new IllegalStateException(e);
         }
     }
 


[commons-rdf] 02/02: [test] Throw a specialized RuntimeException instead of RuntimeException

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rdf.git

commit 4afd81217449ce3da522294b2ee24ec3de7e9cba
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jun 23 15:48:24 2023 -0400

    [test] Throw a specialized RuntimeException instead of
    RuntimeException
---
 .../src/test/java/org/apache/commons/rdf/api/AbstractRDFTest.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commons-rdf-api/src/test/java/org/apache/commons/rdf/api/AbstractRDFTest.java b/commons-rdf-api/src/test/java/org/apache/commons/rdf/api/AbstractRDFTest.java
index e358a1d0..5c5e233d 100644
--- a/commons-rdf-api/src/test/java/org/apache/commons/rdf/api/AbstractRDFTest.java
+++ b/commons-rdf-api/src/test/java/org/apache/commons/rdf/api/AbstractRDFTest.java
@@ -274,7 +274,7 @@ public abstract class AbstractRDFTest {
             }
             @Override
             public boolean equals(final Object obj) {
-                throw new RuntimeException("Wrong way comparison of literal");
+                throw new UnsupportedOperationException("Wrong way comparison of literal");
             }
         };