mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-13 10:15:44 +00:00
squid:UselessParenthesesCheck - Useless parentheses around expressions should be removed to prevent any misunderstanding
This commit is contained in:
1 parent
ab19c47415
commit
046e131119
10 files changed
+13
-13
No files matched your search
@@ -47,7 +47,7 @@ public class LoggingHandler implements ChannelHandler {
|
||||
* received is a ByteBuffer (from TCP channel) or a DatagramPacket (from UDP channel).
|
||||
*/
|
||||
if (readObject instanceof ByteBuffer) {
|
||||
doLogging(((ByteBuffer) readObject));
|
||||
doLogging((ByteBuffer) readObject);
|
||||
sendReply(channel, key);
|
||||
} else if (readObject instanceof DatagramPacket) {
|
||||
DatagramPacket datagram = (DatagramPacket) readObject;
|
||||
|
||||
Reference in new issue
Block a user