428859 patches from quickstart branch

This commit is contained in:
Greg Wilkins 2014-02-24 14:29:01 +11:00
parent 4ce60a1c83
commit 6e0f8b505e
2 changed files with 12 additions and 6 deletions

View File

@ -147,12 +147,17 @@ public class ContainerInitializer
} }
} }
} }
public String toString() public String toString()
{ {
List<String> interested = new ArrayList<>(_interestedTypes.length); List<String> interested = Collections.emptyList();
for (Class<?> c : _interestedTypes) if (_interestedTypes != null)
interested.add(c.getName()); {
interested = new ArrayList<>(_interestedTypes.length);
for (Class<?> c : _interestedTypes)
interested.add(c.getName());
}
return String.format("ContainerInitializer{%s,interested=%s,applicable=%s,annotated=%s}",_target.getClass().getName(),interested,_applicableTypeNames,_annotatedTypeNames); return String.format("ContainerInitializer{%s,interested=%s,applicable=%s,annotated=%s}",_target.getClass().getName(),interested,_applicableTypeNames,_annotatedTypeNames);
} }

View File

@ -156,8 +156,9 @@ public class XmlAppendable
} }
} }
public Stack<String> getOpenTags() public void literal(String xml) throws IOException
{ {
return (Stack<String>)_tags.clone(); _out.append(xml);
} }
} }