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
{code:java}
public void moduleUpdate(AxisEvent axisEvent, AxisModule axisModule) {
if (axisEvent.getEventType() == AxisEvent.MODULE_DEPLOY) {
ClassLoaderUtil.addModuleClassLoader(axisModule);
} else if (axisEvent.getEventType() == AxisEvent.MODULE_DEPLOY) {
ClassLoaderUtil.removeModuleClassLoader(axisModule);
}
}
{code}
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
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]