Skip to content

Commit 4c00893

Browse files
pzygieloslachiewicz
authored andcommitted
Drop unnecessary check for identical branches
1 parent f932183 commit 4c00893

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

modello-plugins/modello-plugin-java/src/main/java/org/codehaus/modello/plugin/java/JavaModelloGenerator.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -422,14 +422,7 @@ private JMethod generateToString( ModelClass modelClass, boolean onlyIdentifierF
422422
return toString;
423423
}
424424

425-
if ( hasJavaSourceSupport( 5 ) )
426-
{
427-
sc.add( "StringBuilder buf = new StringBuilder( 128 );" );
428-
}
429-
else
430-
{
431-
sc.add( "StringBuilder buf = new StringBuilder( 128 );" );
432-
}
425+
sc.add( "StringBuilder buf = new StringBuilder( 128 );" );
433426

434427
sc.add( "" );
435428

0 commit comments

Comments
 (0)