mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
-1
@@ -26,7 +26,6 @@ import org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer;
|
||||
/**
|
||||
* @author Alexander Kireyev
|
||||
*/
|
||||
@SuppressWarnings({"unchecked"})
|
||||
class AreaPicoContainerImpl extends AbstractDelegatingMutablePicoContainer implements AreaPicoContainer {
|
||||
private final AreaInstance myAreaInstance;
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ class XmlSerializerImpl {
|
||||
if (type instanceof Class) {
|
||||
return _getClassBinding((Class<?>)type, type, accessor);
|
||||
}
|
||||
else if (type instanceof ParameterizedType) {
|
||||
if (type instanceof ParameterizedType) {
|
||||
ParameterizedType parameterizedType = (ParameterizedType)type;
|
||||
Type rawType = parameterizedType.getRawType();
|
||||
assert rawType instanceof Class;
|
||||
@@ -154,7 +154,7 @@ class XmlSerializerImpl {
|
||||
}
|
||||
|
||||
public static boolean isIgnoredNode(final Object child) {
|
||||
if (child instanceof Text && ((Text)child).getValue().trim().length() == 0) {
|
||||
if (child instanceof Text && ((Text)child).getValue().trim().isEmpty()) {
|
||||
return true;
|
||||
}
|
||||
if (child instanceof Comment) {
|
||||
@@ -163,7 +163,7 @@ class XmlSerializerImpl {
|
||||
if (child instanceof Attribute) {
|
||||
Attribute attr = (Attribute)child;
|
||||
final String namespaceURI = attr.getNamespaceURI();
|
||||
if (namespaceURI != null && namespaceURI.length() > 0) return true;
|
||||
if (namespaceURI != null && !namespaceURI.isEmpty()) return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user