https://issues.apache.org/bugzilla/show_bug.cgi?id=56582
Bug ID: 56582
Summary: Use switch(enum) in implementations of
ActionHook.action(ActionCode, ...)
Product: Tomcat 8
Version: 8.0.8
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Connectors
Assignee: [email protected]
Reporter: [email protected]
As of now,
AbstractHttp11Processor.action(ActionCode, Object)
AbstractAjpProcessor.action(ActionCode, Object)
are implemented as a chain of if/elseif going through every defined ActionCode.
As ActionCode is an enum starting with Tomcat 7, I think it would be better to
reorganize the code to use switch(enum) construct.
--
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]