From 9294033849fd1fdf977f3a3db898f19c67aa261b Mon Sep 17 00:00:00 2001 From: kamaci Date: Sat, 24 Nov 2018 23:31:29 +0300 Subject: [PATCH] Return statement is simplified. --- .../org/apache/stanbol/commons/solr/managed/IndexMetadata.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commons/solr/managed/src/main/java/org/apache/stanbol/commons/solr/managed/IndexMetadata.java b/commons/solr/managed/src/main/java/org/apache/stanbol/commons/solr/managed/IndexMetadata.java index 443fca8d1..ef5343120 100644 --- a/commons/solr/managed/src/main/java/org/apache/stanbol/commons/solr/managed/IndexMetadata.java +++ b/commons/solr/managed/src/main/java/org/apache/stanbol/commons/solr/managed/IndexMetadata.java @@ -174,7 +174,7 @@ public void setIndexArchives(List archives){ } public boolean isSynchronized(){ String value = getProperty(SYNCHRONIZED); - return value == null ? false : Boolean.parseBoolean(value); + return Boolean.parseBoolean(value); } public void setSynchronized(boolean state){ setProperty(SYNCHRONIZED, Boolean.toString(state));