[Minor] switched to StringHelper.isNotEmpty()
This commit is contained in:
parent
e72481eddd
commit
f857c0b5c0
|
@ -66,7 +66,7 @@ public abstract class AbstractionConfiguration {
|
||||||
|
|
||||||
public boolean getBoolean(String key, Boolean defValue) {
|
public boolean getBoolean(String key, Boolean defValue) {
|
||||||
String value = this.configurationValues.get(key);
|
String value = this.configurationValues.get(key);
|
||||||
if (!StringHelper.isEmpty(value)) {
|
if (StringHelper.isNotEmpty(value)) {
|
||||||
if (value.equalsIgnoreCase("true")) //$NON-NLS-1$
|
if (value.equalsIgnoreCase("true")) //$NON-NLS-1$
|
||||||
return true;
|
return true;
|
||||||
else if (value.equalsIgnoreCase("false")) //$NON-NLS-1$
|
else if (value.equalsIgnoreCase("false")) //$NON-NLS-1$
|
||||||
|
@ -84,7 +84,7 @@ public abstract class AbstractionConfiguration {
|
||||||
|
|
||||||
public int getInt(String key, int defValue) {
|
public int getInt(String key, int defValue) {
|
||||||
String value = this.configurationValues.get(key);
|
String value = this.configurationValues.get(key);
|
||||||
if (!StringHelper.isEmpty(value)) {
|
if (StringHelper.isNotEmpty(value)) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return Integer.parseInt(value);
|
return Integer.parseInt(value);
|
||||||
|
@ -102,7 +102,7 @@ public abstract class AbstractionConfiguration {
|
||||||
|
|
||||||
public long getLong(String key, long defValue) {
|
public long getLong(String key, long defValue) {
|
||||||
String value = this.configurationValues.get(key);
|
String value = this.configurationValues.get(key);
|
||||||
if (!StringHelper.isEmpty(value)) {
|
if (StringHelper.isNotEmpty(value)) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return Long.parseLong(value);
|
return Long.parseLong(value);
|
||||||
|
|
Loading…
Reference in New Issue