[ https://issues.apache.org/jira/browse/AXIS2-5901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Lazarski resolved AXIS2-5901. ------------------------------------ Resolution: Fixed Thanks for the contribution. The duplicate code has been removed. > 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: java-dev-unsubscr...@axis.apache.org For additional commands, e-mail: java-dev-h...@axis.apache.org