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 2024/08/18 19:53:51 UTC

(commons-rdf) 16/22: Fix CheckStyle errors

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 a7358f3777bbe770033f9fbc434ddc2606453238
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 18 15:43:47 2024 -0400

    Fix CheckStyle errors
    
    UnnecessaryParentheses
---
 .../src/main/java/org/apache/commons/rdf/jena/impl/JenaGraphImpl.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/impl/JenaGraphImpl.java b/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/impl/JenaGraphImpl.java
index ebaba0eb..fc985cda 100644
--- a/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/impl/JenaGraphImpl.java
+++ b/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/impl/JenaGraphImpl.java
@@ -115,7 +115,7 @@ final class JenaGraphImpl implements JenaGraph {
 
     @Override
     public void remove(final Triple triple) {
-        if ((triple.getObject() instanceof Literal) &&
+        if (triple.getObject() instanceof Literal &&
                 ((Literal) triple.getObject()).getLanguageTag().isPresent()) {
             // COMMONSRDF-51: graph.delete(Triple) would be too restrictive
             // as it won't delete triples with different lang tag - so