Skip to content

Commit

Permalink
* Replace Vector with ArrayList
Browse files Browse the repository at this point in the history
* Deprecate JNamedMap in favor of LinkedHashMap
* Replace StringBuffer with StringBuilder
* Update surefire
  • Loading branch information
rfscholte authored Dec 31, 2018
1 parent af7a3a1 commit c486d6b
Show file tree
Hide file tree
Showing 31 changed files with 251 additions and 369 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ protected String capitalise( String str )
return str;
}

return new StringBuffer( str.length() )
return new StringBuilder( str.length() )
.append( Character.toTitleCase( str.charAt( 0 ) ) )
.append( str.substring( 1 ) )
.toString();
Expand Down Expand Up @@ -220,7 +220,7 @@ public static String uncapitalise( String str )
return str;
}

return new StringBuffer( str.length() )
return new StringBuilder( str.length() )
.append( Character.toLowerCase( str.charAt( 0 ) ) )
.append( str.substring( 1 ) )
.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@
<code><![CDATA[
public String getId()
{
StringBuffer id = new StringBuffer();
StringBuilder id = new StringBuilder();
id.append( getGroupId() );
id.append( ":" );
Expand Down Expand Up @@ -1748,7 +1748,7 @@
<code><![CDATA[
public String getId()
{
StringBuffer id = new StringBuffer();
StringBuilder id = new StringBuilder();
id.append( getGroupId() );
id.append( ":" );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@
<code>
public String getId()
{
StringBuffer id = new StringBuffer();
StringBuilder id = new StringBuilder();

id.append( getGroupId() );
id.append( ":" );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@
<code>
public String getId()
{
StringBuffer id = new StringBuffer();
StringBuilder id = new StringBuilder();

id.append( getGroupId() );
id.append( ":" );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@
<code>
public String getId()
{
StringBuffer id = new StringBuffer();
StringBuilder id = new StringBuilder();

id.append( getGroupId() );
id.append( ":" );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ private JMethod generateToString( ModelClass modelClass, boolean onlyIdentifierF
}
else
{
sc.add( "StringBuffer buf = new StringBuffer( 128 );" );
sc.add( "StringBuilder buf = new StringBuilder( 128 );" );
}

sc.add( "" );
Expand Down Expand Up @@ -1246,7 +1246,7 @@ private JMethod createGetter( JField field, ModelField modelField )

JMethod getter = new JMethod( prefix + propertyName, returnType, null );

StringBuffer comment = new StringBuffer( "Get " );
StringBuilder comment = new StringBuilder( "Get " );
if ( StringUtils.isEmpty( modelField.getDescription() ) )
{
comment.append( "the " );
Expand Down Expand Up @@ -1286,7 +1286,7 @@ private JMethod createSetter( JField field, ModelField modelField, boolean isBui
setter = new JMethod( "set" + propertyName );
}

StringBuffer comment = new StringBuffer( "Set " );
StringBuilder comment = new StringBuilder( "Set " );
if ( StringUtils.isEmpty( modelField.getDescription() ) )
{
comment.append( "the " );
Expand Down
Loading

0 comments on commit c486d6b

Please sign in to comment.