selectedRepositories = parseSelectedRepositories();
List<RepositoryStatistics> repositoryStatistics = new ArrayList<RepositoryStatistics>();
- StringBuffer input;
+ StringBuilder input;
RepositorySession repositorySession = repositorySessionFactory.createSession();
try
{
return INPUT;
}
- input = new StringBuffer(
+ input = new StringBuilder(
"Repository,Total File Count,Total Size,Artifact Count,Group Count,Project Count,Plugins,Archetypes,"
+ "Jars,Wars\n" );
return ERROR;
}
- input = new StringBuffer(
+ input = new StringBuilder(
"Date of Scan,Total File Count,Total Size,Artifact Count,Group Count,Project Count,Plugins,"
+ "Archetypes,Jars,Wars\n" );
private String toUri( Map<String, Object> params, boolean artifactId, boolean version, String method )
{
- StringBuffer buf = new StringBuffer();
+ StringBuilder buf = new StringBuilder();
buf.append( BROWSE_PREFIX );
buf.append( '/' );
// Canonicalize line ends to make them easier to process
raw = raw.replace("\r\n", "\n").replace("\r", "\n");
- StringBuffer encoded = new StringBuffer();
+ StringBuilder encoded = new StringBuilder();
int rawlen = raw.length();
for ( int i = 0; i < rawlen; i++ )
public static String decode( String encoded )
{
- StringBuffer decoded = new StringBuffer();
+ StringBuilder decoded = new StringBuilder();
int enlen = encoded.length();
for ( int i = 0; i < enlen; i++ )
{
{
Pattern pat = Pattern.compile( "#{2,}" );
Matcher mat = pat.matcher( text );
- StringBuffer ret = new StringBuffer();
+ StringBuilder ret = new StringBuilder();
int off = 0;
while ( mat.find( off ) )
if ( CollectionUtils.isNotEmpty( violations ) )
{
- StringBuffer msg = new StringBuffer();
+ StringBuilder msg = new StringBuilder();
msg.append( "EnvironmentCheck Failure.\n" );
msg.append( "======================================================================\n" );
msg.append( " ENVIRONMENT FAILURE !! \n" );
public int doEndTag()
throws JspException
{
- StringBuffer prefix = new StringBuffer();
- StringBuffer buf = new StringBuffer();
- StringBuffer suffix = new StringBuffer();
+ StringBuilder prefix = new StringBuilder();
+ StringBuilder buf = new StringBuilder();
+ StringBuilder suffix = new StringBuilder();
if ( object == null )
{
this.wrapper = wrapper;
}
- private void createSnippet( StringBuffer snippet, ManagedRepositoryConfiguration repo, PageContext pageContext )
+ private void createSnippet( StringBuilder snippet, ManagedRepositoryConfiguration repo, PageContext pageContext )
{
snippet.append( "<project>\n" );
snippet.append( " ...\n" );
@Override
public boolean end( Writer writer, String body )
{
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
sb.append( "<span class=\"groupId\">" );
*/
public static String getBaseURL( HttpServletRequest request, String resource )
{
- StringBuffer baseUrl = new StringBuffer();
+ StringBuilder baseUrl = new StringBuilder();
baseUrl.append( request.getScheme() ).append( "://" );
baseUrl.append( getServerName( request ) );