-
Enhancement
-
Resolution: Fixed
-
P4
-
21
-
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.