Conversation
| private Socket socket = null; | ||
| private boolean shouldClose = false; | ||
|
|
||
| private volatile Exception exception = null; |
There was a problem hiding this comment.
🟠 Code Quality Violation
| private volatile Exception exception = null; | |
| private volatile Exception exception; |
Remove initialization, this is already the default value. (...read more)
When initializing fields, prevent initializing fields to the default value. Any additional initialization means more bytecode instructions, and allocating many of these objects may impact your application performance.
If you initialize to a default value, remove the initialization.
| private boolean shouldClose = false; | ||
|
|
||
| private volatile Exception exception = null; | ||
| private volatile Socket socket = null; |
There was a problem hiding this comment.
🟠 Code Quality Violation
| private volatile Socket socket = null; | |
| private volatile Socket socket; |
Remove initialization, this is already the default value. (...read more)
When initializing fields, prevent initializing fields to the default value. Any additional initialization means more bytecode instructions, and allocating many of these objects may impact your application performance.
If you initialize to a default value, remove the initialization.
|
|
||
| private volatile Exception exception = null; | ||
| private volatile Socket socket = null; | ||
| private volatile boolean shouldClose = false; |
There was a problem hiding this comment.
🟠 Code Quality Violation
| private volatile boolean shouldClose = false; | |
| private volatile boolean shouldClose; |
Remove initialization, this is already the default value. (...read more)
When initializing fields, prevent initializing fields to the default value. Any additional initialization means more bytecode instructions, and allocating many of these objects may impact your application performance.
If you initialize to a default value, remove the initialization.
bd24e79 to
e130317
Compare
No description provided.