Details
-
Bug
-
Status: Resolved
-
P4
-
Resolution: Fixed
-
None
-
b27
Description
There are a few code check both non-null and instance of a class. The "instanceof" checking could cover the non-null check. For example, the following code:
if ((cause != null) && (cause instanceof IOException)) {
could be:
if (cause instanceof IOException) {
if ((cause != null) && (cause instanceof IOException)) {
could be:
if (cause instanceof IOException) {