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:
hduelme
2023-01-26 21:34:56 +01:00
committed by Greg L. Turnquist
parent 1b6fb7de44
commit a7a2726194
5 changed files with 5 additions and 5 deletions

View File

@@ -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;