ASF Bugzilla – Attachment 33208 Details for
Bug 58534
Repeated Conditional Test
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to remove repeated conditional tests
PojoMethodMapping.patch (text/plain), 2.50 KB, created by
Anthony Whitford
on 2015-10-25 19:20:50 UTC
(
hide
)
Description:
Patch to remove repeated conditional tests
Filename:
MIME Type:
Creator:
Anthony Whitford
Created:
2015-10-25 19:20:50 UTC
Size:
2.50 KB
patch
obsolete
>Index: java/org/apache/tomcat/websocket/pojo/PojoMethodMapping.java >=================================================================== >--- java/org/apache/tomcat/websocket/pojo/PojoMethodMapping.java (revision 1710467) >+++ java/org/apache/tomcat/websocket/pojo/PojoMethodMapping.java (working copy) >@@ -94,7 +94,7 @@ > open = method; > } else { > if (currentClazz == clazzPojo || >- (currentClazz != clazzPojo && !isMethodOverride(open, method))) { >+ !isMethodOverride(open, method)) { > // Duplicate annotation > throw new DeploymentException(sm.getString( > "pojoMethodMapping.duplicateAnnotation", >@@ -107,7 +107,7 @@ > close = method; > } else { > if (currentClazz == clazzPojo || >- (currentClazz != clazzPojo && !isMethodOverride(close, method))) { >+ !isMethodOverride(close, method)) { > // Duplicate annotation > throw new DeploymentException(sm.getString( > "pojoMethodMapping.duplicateAnnotation", >@@ -120,7 +120,7 @@ > error = method; > } else { > if (currentClazz == clazzPojo || >- (currentClazz != clazzPojo && !isMethodOverride(error, method))) { >+ !isMethodOverride(error, method)) { > // Duplicate annotation > throw new DeploymentException(sm.getString( > "pojoMethodMapping.duplicateAnnotation", >@@ -135,8 +135,7 @@ > if (messageHandler.targetsSameWebSocketMessageType(otherMessageHandler)) { > found = true; > if (currentClazz == clazzPojo || >- (currentClazz != clazzPojo >- && !isMethodOverride(messageHandler.m, otherMessageHandler.m))) { >+ !isMethodOverride(messageHandler.m, otherMessageHandler.m)) { > // Duplicate annotation > throw new DeploymentException(sm.getString( > "pojoMethodMapping.duplicateAnnotation",
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 58534
: 33208 |
33209