[jira] [Created] (AXIS2-5900) If and else branches has the same condition

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Created] (AXIS2-5900) If and else branches has the same condition

JIRA jira@apache.org
songwanging created AXIS2-5900:

             Summary: If and else branches has the same condition
                 Key: AXIS2-5900
                 URL: https://issues.apache.org/jira/browse/AXIS2-5900
             Project: Axis2
          Issue Type: Bug
          Components: modules
    Affects Versions: 1.7.7
            Reporter: songwanging
            Priority: Minor

Our tool DeepTect has detected a piece of buggy code snippet, in which the if and else branches has the same condition.

Path: axis2-java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesAxisObserver.java

 public void moduleUpdate(AxisEvent axisEvent, AxisModule axisModule) {
        if (axisEvent.getEventType() == AxisEvent.MODULE_DEPLOY) {
        } else if (axisEvent.getEventType() == AxisEvent.MODULE_DEPLOY) {

In the above code snippet, the conditions in the if and else if branches are exactly the same.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]