Remove null checks from instanceof checks.
As of Java 11, the Jave language officially declares that instanceof checks include a null check, hence no need to do them in our code. Resolves #1326.
This commit is contained in:
committed by
Greg L. Turnquist
parent
1b6fb7de44
commit
a7a2726194
@@ -62,7 +62,7 @@ public class QNameEditor extends PropertyEditorSupport {
|
||||
@Override
|
||||
public String getAsText() {
|
||||
Object value = getValue();
|
||||
if (value == null || !(value instanceof QName)) {
|
||||
if (!(value instanceof QName)) {
|
||||
return "";
|
||||
} else {
|
||||
QName qName = (QName) value;
|
||||
|
||||
Reference in New Issue
Block a user