Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5901

Redundant conditions in an if statement

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • kernel
    • None

    Description

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

      Path: axis2-java/modules/kernel/src/org/apache/axis2/context/OperationContext.java

      if (mepString.equals(WSDL2Constants.MEP_URI_OUT_ONLY)
                      || mepString.equals(WSDL2Constants.MEP_URI_OUT_ONLY)
                      || ((mepString.equals(WSDL2Constants.MEP_URI_OUT_IN)
                          || mepString.equals(WSDL2Constants.MEP_URI_OUT_IN))
                          && !isComplete)) {
                 ...
      }
      

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            songwang songwanging
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: