Component parent = component.getParent();
String paintableId = component.getConnectorId();
- clientJSON.append("\"id\":\"" + paintableId + "\"");
+ clientJSON.append("\"id\":\"").append(paintableId).append("\"");
if (invalidHeight) {
Stack<ComponentInfo> attributes = null;
attributes = getHeightAttributes(component);
}
printServerError(msg, attributes, false, serverErrorStream);
- clientJSON.append(",\"heightMsg\":\"" + msg + "\"");
+ clientJSON.append(",\"heightMsg\":\"").append(msg).append("\"");
}
if (invalidWidth) {
Stack<ComponentInfo> attributes = null;
msg = "A component with relative width needs a parent with defined width.";
attributes = getWidthAttributes(component);
}
- clientJSON.append(",\"widthMsg\":\"" + msg + "\"");
+ clientJSON.append(",\"widthMsg\":\"").append(msg).append("\"");
printServerError(msg, attributes, true, serverErrorStream);
}
if (subErrors.size() > 0) {
}
if (createLoc != null) {
- err.append(", created at (" + createLoc.file + ":"
- + createLoc.lineNumber + ")");
+ err.append(", created at (").append(createLoc.file).append(":").append(createLoc.lineNumber).append(")");
}
err.append(" (");
err.append(attribute);
if (sizeLoc != null) {
- err.append(", set at (" + sizeLoc.file + ":"
- + sizeLoc.lineNumber + ")");
+ err.append(", set at (").append(sizeLoc.file).append(":").append(sizeLoc.lineNumber).append(")");
}
err.append(")");
"Parameters must be non-null strings");
}
final StringBuilder buf = new StringBuilder();
- buf.append("\"" + name + "\":[");
+ buf.append("\"").append(name).append("\":[");
for (int i = 0; i < values.length; i++) {
if (i > 0) {
buf.append(",");
private boolean tagClosed = false;
public JsonTag(String tagName) {
- data.append("[\"" + tagName + "\"");
+ data.append("[\"").append(tagName).append("\"");
}
private void closeTag() {
&& !portalTheme.equals(context.getThemeName())) {
String portalThemeUri = getThemeUri(context, portalTheme);
// XSS safe - originates from portal properties
- builder.append("vaadin.loadTheme('" + portalThemeUri + "');");
+ builder.append("vaadin.loadTheme('").append(portalThemeUri).append("');");
}
super.appendMainScriptTagContents(context, builder);
}
Collections.sort(names);
- sb.append("<" + producedElem.tagName() + "");
+ sb.append("<").append(producedElem.tagName()).append("");
for (String attrName : names) {
sb.append(" ").append(attrName);
if (!booleanAttributes.contains(attrName)) {
@Override
public void appendTo(StringBuffer buffer) {
buffer.append("EventEquals(");
- buffer.append("expected " + expected.getClass().getSimpleName()
- + " with connector " + expected.getConnector());
+ buffer.append("expected ").append(expected.getClass().getSimpleName()).append(" with connector ").append(expected.getConnector());
buffer.append(")");
}
EasyMock.reportMatcher(new IArgumentMatcher() {
@Override
public void appendTo(StringBuffer buffer) {
- buffer.append("paramsIs(\"" + expected + "\")");
+ buffer.append("paramsIs(\"").append(expected).append("\")");
}
@Override
header.append(" node [shape = ellipse, style=\"dotted\"] ");
for (Class c : classesAndParents) {
if (!c.isInterface() && Modifier.isAbstract(c.getModifiers())) {
- header.append(c.getSimpleName() + " ");
+ header.append(c.getSimpleName()).append(" ");
}
}
if (includeInterfaces) {
System.out.print(" node [shape = ellipse, style=\"solid\"] ");
for (Class c : classesAndParents) {
if (c.isInterface()) {
- header.append(c.getSimpleName() + " ");
+ header.append(c.getSimpleName()).append(" ");
}
}
header.append(";\n");