File tree 2 files changed +4
-2
lines changed
proxy/src/main/java/org/apache/rocketmq/proxy/remoting
remoting/src/main/java/org/apache/rocketmq/remoting/netty
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -102,8 +102,9 @@ private static ClientAuth parseClientAuthMode(String authMode) {
102
102
return ClientAuth .NONE ;
103
103
}
104
104
105
+ String authModeUpper = authMode .toUpperCase ();
105
106
for (ClientAuth clientAuth : ClientAuth .values ()) {
106
- if (clientAuth .name ().equals (authMode . toUpperCase () )) {
107
+ if (clientAuth .name ().equals (authModeUpper )) {
107
108
return clientAuth ;
108
109
}
109
110
}
Original file line number Diff line number Diff line change @@ -216,8 +216,9 @@ private static ClientAuth parseClientAuthMode(String authMode) {
216
216
return ClientAuth .NONE ;
217
217
}
218
218
219
+ String authModeUpper = authMode .toUpperCase ();
219
220
for (ClientAuth clientAuth : ClientAuth .values ()) {
220
- if (clientAuth .name ().equals (authMode . toUpperCase () )) {
221
+ if (clientAuth .name ().equals (authModeUpper )) {
221
222
return clientAuth ;
222
223
}
223
224
}
You can’t perform that action at this time.
0 commit comments