[
https://issues.apache.org/jira/browse/AXIS2-5901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Lazarski updated AXIS2-5901:
-----------------------------------
Fix Version/s: 2.0.0
> Redundant conditions in an if statement
> ---------------------------------------
>
> Key: AXIS2-5901
> URL: https://issues.apache.org/jira/browse/AXIS2-5901
> Project: Axis2
> Issue Type: Bug
> Components: kernel
> Reporter: songwanging
> Priority: Minor
> Fix For: 2.0.0
>
>
> 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
> {code: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)) {
> ...
> }
> {code}
> In the above code snippet, the if statement contains the same conditions.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]