Whitespace tweaks.
This commit is contained in:
@@ -212,17 +212,15 @@ public class Mustache {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Replaces "".equals(value). E.g. only not null values with length 0
|
* Replaces "".equals(value). E.g. only not null values with length 0.
|
||||||
*/
|
*/
|
||||||
private boolean isEmptyCharSequence(Object value) {
|
private boolean isEmptyCharSequence (Object value) {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (value instanceof CharSequence) {
|
||||||
if(value instanceof CharSequence) {
|
|
||||||
return ((CharSequence) value).length() == 0;
|
return ((CharSequence) value).length() == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user