Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.3.0
-
None
Description
Our tool DeepTect has detected the following two pieces of buggy code snippet, in which the if branch has exactly the same conditions.
Path1: marmotta/client/marmotta-client-java/src/main/java/org/apache/marmotta/client/util/HTTPUtil.java
if (StringUtils.isNotBlank(config.getMarmottaUser()) && StringUtils.isNotBlank(config.getMarmottaUser())) {
...
}
Path2: marmotta/libraries/ldpath/ldpath-backend-linkeddata/src/main/java/org/apache/marmotta/ldpath/backend/linkeddata/LDCacheBackend.java
if(subject instanceof org.openrdf.model.URI && subject instanceof org.openrdf.model.URI) { .. }
In the above code snippets, the if statement contains the same conditions