You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@marmotta.apache.org by "songwanging (JIRA)" <ji...@apache.org> on 2017/12/06 22:20:00 UTC

[jira] [Created] (MARMOTTA-671) Redundant conditions in an if statement

songwanging created MARMOTTA-671:
------------------------------------

             Summary: Redundant conditions in an if statement
                 Key: MARMOTTA-671
                 URL: https://issues.apache.org/jira/browse/MARMOTTA-671
             Project: Marmotta
          Issue Type: Bug
          Components: Client Library
    Affects Versions: 3.3.0
            Reporter: songwanging
            Priority: Minor


Our tool DeepTect has detected a piece of buggy code snippet, in which the if branch has exactly the same conditions.

Path: marmotta/client/marmotta-client-java/src/main/java/org/apache/marmotta/client/util/HTTPUtil.java


{code:java}
if (StringUtils.isNotBlank(config.getMarmottaUser()) && StringUtils.isNotBlank(config.getMarmottaUser())) {
...
}
{code}

In the above code snippet, the if statement contains the same conditions



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)