");
res.append( engine.getManager( RenderingManager.class ).textToHTML( includedContext, pageData ) );
@@ -200,8 +200,8 @@ public String execute( final Context context, final Map
params )
if( defaultstr != null ) {
res.append( defaultstr );
} else {
- res.append( "There is no page called '" + includedPage + "'. Would you like to " );
- res.append( "create it?" );
+ res.append( "There is no page called '" ).append( includedPage ).append( "'. Would you like to " );
+ res.append( "create it?" );
}
}
} else {
diff --git a/jspwiki-main/src/main/java/org/apache/wiki/plugin/ListLocksPlugin.java b/jspwiki-main/src/main/java/org/apache/wiki/plugin/ListLocksPlugin.java
index 91288d3646..c58884f351 100644
--- a/jspwiki-main/src/main/java/org/apache/wiki/plugin/ListLocksPlugin.java
+++ b/jspwiki-main/src/main/java/org/apache/wiki/plugin/ListLocksPlugin.java
@@ -49,21 +49,19 @@ public String execute( final Context context, final Map< String, String > params
final ResourceBundle rb = Preferences.getBundle( context, Plugin.CORE_PLUGINS_RESOURCEBUNDLE );
result.append("\n");
result.append("\n");
- result.append( "" + rb.getString( "plugin.listlocks.page" ) + " | " + rb.getString( "plugin.listlocks.locked.by" )
- + " | " + rb.getString( "plugin.listlocks.acquired" ) + " | "
- + rb.getString( "plugin.listlocks.expires" ) + " | \n" );
+ result.append( "" ).append( rb.getString( "plugin.listlocks.page" ) ).append( " | " ).append( rb.getString( "plugin.listlocks.locked.by" ) ).append( " | " ).append( rb.getString( "plugin.listlocks.acquired" ) ).append( " | " ).append( rb.getString( "plugin.listlocks.expires" ) ).append( " | \n" );
result.append("
");
if( locks.size() == 0 ) {
- result.append( "" + rb.getString( "plugin.listlocks.no.locks.exist" ) + " |
\n" );
+ result.append( "" ).append( rb.getString( "plugin.listlocks.no.locks.exist" ) ).append( " |
\n" );
} else {
int rowNum = 1;
for( final PageLock lock : locks ) {
result.append( rowNum % 2 != 0 ? "" : "
" );
- result.append( "" + lock.getPage() + " | " );
- result.append( "" + lock.getLocker() + " | " );
- result.append( "" + Preferences.renderDate( context, lock.getAcquisitionTime(), Preferences.TimeFormat.DATETIME ) + " | " );
- result.append( "" + Preferences.renderDate( context, lock.getExpiryTime(), Preferences.TimeFormat.DATETIME ) + " | " );
+ result.append( "" ).append( lock.getPage() ).append( " | " );
+ result.append( "" ).append( lock.getLocker() ).append( " | " );
+ result.append( "" ).append( Preferences.renderDate( context, lock.getAcquisitionTime(), Preferences.TimeFormat.DATETIME ) ).append( " | " );
+ result.append( "" ).append( Preferences.renderDate( context, lock.getExpiryTime(), Preferences.TimeFormat.DATETIME ) ).append( " | " );
result.append( "
\n" );
rowNum++;
}
diff --git a/jspwiki-main/src/main/java/org/apache/wiki/plugin/ReferredPagesPlugin.java b/jspwiki-main/src/main/java/org/apache/wiki/plugin/ReferredPagesPlugin.java
index 607be49bc1..25c7e4ad66 100644
--- a/jspwiki-main/src/main/java/org/apache/wiki/plugin/ReferredPagesPlugin.java
+++ b/jspwiki-main/src/main/java/org/apache/wiki/plugin/ReferredPagesPlugin.java
@@ -145,9 +145,12 @@ public String execute( final Context context, final Map params )
( m_formatSort ? " sort" : "" ) + "]";
m_result.append( "\n" );
- m_result.append( "
" + TextUtil.replaceEntities( rootname ) + "\n" );
+ m_result.append( "
" )
+ .append( TextUtil.replaceEntities( rootname ) )
+ .append( "\n" );
m_exists.add( rootname );
// pre compile all needed patterns
@@ -235,7 +238,7 @@ private void handleLinks( final Context context, final Collection
links,
}
//See https://www.w3.org/wiki/HTML_lists for proper nesting of UL and LI
- m_result.append( " " + TextUtil.replaceEntities(link) + "\n" );
+ m_result.append( " " ).append( TextUtil.replaceEntities( link ) ).append( "\n" );
getReferredPages( context, link, depth ); // added recursive call - on general request
m_result.append( "\n\n" );
}
@@ -246,7 +249,7 @@ private void handleLinks( final Context context, final Collection links,
}
final String href = context.getURL( ContextEnum.PAGE_VIEW.getRequestContext(), link );
- m_result.append( "" + TextUtil.replaceEntities(link) + "\n" );
+ m_result.append( "" ).append( TextUtil.replaceEntities( link ) ).append( "\n" );
m_exists.add( link );
getReferredPages( context, link, depth );
m_result.append( "\n\n" );
diff --git a/jspwiki-main/src/main/java/org/apache/wiki/plugin/ReferringUndefinedPagesPlugin.java b/jspwiki-main/src/main/java/org/apache/wiki/plugin/ReferringUndefinedPagesPlugin.java
index 3283723e64..aca7edefa3 100644
--- a/jspwiki-main/src/main/java/org/apache/wiki/plugin/ReferringUndefinedPagesPlugin.java
+++ b/jspwiki-main/src/main/java/org/apache/wiki/plugin/ReferringUndefinedPagesPlugin.java
@@ -84,7 +84,7 @@ public String execute( final Context context, final Map params)
final Object[] args = { "" + ( result.size() - items ) };
extras = MessageFormat.format( extras, args );
- resultHTML.append( "
" + extras + "
" );
+ resultHTML.append( "
" ).append( extras ).append( "
" );
}
return resultHTML.toString();
}
diff --git a/jspwiki-main/src/main/java/org/apache/wiki/plugin/TableOfContents.java b/jspwiki-main/src/main/java/org/apache/wiki/plugin/TableOfContents.java
index 28aa978d7e..ae1f850f5a 100644
--- a/jspwiki-main/src/main/java/org/apache/wiki/plugin/TableOfContents.java
+++ b/jspwiki-main/src/main/java/org/apache/wiki/plugin/TableOfContents.java
@@ -121,25 +121,25 @@ public void headingAdded( final Context context, final Heading hd ) {
final String sectref = "#section-"+pageName+"-"+titleSection;
- m_buf.append( "" );
+ m_buf.append( "" );
if (m_usingNumberedList)
{
switch( hd.m_level )
{
case Heading.HEADING_SMALL:
- m_buf.append(m_prefix + m_level1Index + "." + m_level2Index + "."+ m_level3Index +" ");
+ m_buf.append( m_prefix ).append( m_level1Index ).append( "." ).append( m_level2Index ).append( "." ).append( m_level3Index ).append( " " );
break;
case Heading.HEADING_MEDIUM:
- m_buf.append(m_prefix + m_level1Index + "." + m_level2Index + " ");
+ m_buf.append( m_prefix ).append( m_level1Index ).append( "." ).append( m_level2Index ).append( " " );
break;
case Heading.HEADING_LARGE:
- m_buf.append(m_prefix + m_level1Index +" ");
+ m_buf.append( m_prefix ).append( m_level1Index ).append( " " );
break;
default:
throw new InternalWikiException("Unknown depth in toc! (Please submit a bug report.)");
}
}
- m_buf.append( TextUtil.replaceEntities(hd.m_titleText)+"\n" );
+ m_buf.append( TextUtil.replaceEntities( hd.m_titleText ) ).append( "\n" );
m_lastLevel = hd.m_level;
}
diff --git a/jspwiki-main/src/main/java/org/apache/wiki/plugin/WeblogPlugin.java b/jspwiki-main/src/main/java/org/apache/wiki/plugin/WeblogPlugin.java
index 158f21d0fd..8311b1aac8 100644
--- a/jspwiki-main/src/main/java/org/apache/wiki/plugin/WeblogPlugin.java
+++ b/jspwiki-main/src/main/java/org/apache/wiki/plugin/WeblogPlugin.java
@@ -327,7 +327,7 @@ private void addEntryHTML( final Context context, final DateFormat entryFormat,
}
buffer.append(html.substring(0, cutoff));
if (hasBeenCutOff) {
- buffer.append(" "+rb.getString("weblogentryplugin.more")+"\n");
+ buffer.append( " " ).append( rb.getString( "weblogentryplugin.more" ) ).append( "\n" );
}
} else {
buffer.append(html);
@@ -350,7 +350,7 @@ private void addEntryHTML( final Context context, final DateFormat entryFormat,
}
buffer.append( MessageFormat.format( rb.getString( "weblogentryplugin.postedby" ), author ) );
- buffer.append( "" + rb.getString("weblogentryplugin.permalink") + "" );
+ buffer.append( "" ).append( rb.getString( "weblogentryplugin.permalink" ) ).append( "" );
final String commentPageName = TextUtil.replaceString( entry.getName(), "blogentry", "comments" );
if( hasComments ) {
@@ -363,10 +363,7 @@ private void addEntryHTML( final Context context, final DateFormat entryFormat,
final String addcomment = rb.getString("weblogentryplugin.addcomment");
- buffer.append( "" +
- MessageFormat.format( addcomment, numComments ) +
- "" );
+ buffer.append( "" ).append( MessageFormat.format( addcomment, numComments ) ).append( "" );
}
buffer.append(" \n");
diff --git a/jspwiki-main/src/main/java/org/apache/wiki/tags/SetPaginationTag.java b/jspwiki-main/src/main/java/org/apache/wiki/tags/SetPaginationTag.java
index 036068a067..6a3b2d3fd0 100644
--- a/jspwiki-main/src/main/java/org/apache/wiki/tags/SetPaginationTag.java
+++ b/jspwiki-main/src/main/java/org/apache/wiki/tags/SetPaginationTag.java
@@ -137,7 +137,7 @@ public int doWikiStartTag()
pagination.append( "