-
Type:
Enhancement
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 21
-
Component/s: core-libs
-
b16
-
generic
-
generic
The method implCloseChannel contains an if-block
if (parent != null) {
// [...]
} else if (closer != null) {
// [...]
} else {
// [...]
}
but the closer and parent instance variables are final and closer is non-null if and only if parent is null, hence the else branch is unreachable.
if (parent != null) {
// [...]
} else if (closer != null) {
// [...]
} else {
// [...]
}
but the closer and parent instance variables are final and closer is non-null if and only if parent is null, hence the else branch is unreachable.