https://bz.apache.org/bugzilla/show_bug.cgi?id=58534
Bug ID: 58534
Summary: Repeated Conditional Test
Product: Tomcat 8
Version: trunk
Hardware: Macintosh
OS: Mac OS X 10.1
Status: NEW
Severity: trivial
Priority: P2
Component: WebSocket
Assignee: [email protected]
Reporter: [email protected]
In org.apache.tomcat.websocket.pojo.PojoMethodMapping, there are cases like
this:
if (currentClazz == clazzPojo ||
(currentClazz != clazzPojo && !isMethodOverride(open, method))) {
The clause 'currentClazz != clazzPojo' is redundant since we know 'currentClazz
== clazzPojo' is false.
This is repeated several times.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]