Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ public sealed interface IdentifierSegment permits KeyIdentifierSegment, NameIden
String toString();

/**
* Appends a string representation of this Segment to a StringBuffer.
* Appends a string representation of this Segment to a StringBuilder.
*
* @param buf StringBuffer
* @param buf StringBuilder
*/
void toString(StringBuilder buf);

Expand Down
5 changes: 2 additions & 3 deletions common/src/main/java/org/eclipse/daanse/olap/common/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -2315,9 +2315,8 @@ public static String replaceProperties(
String text,
Map<String, String> env)
{
// As of JDK 1.5, cannot use StringBuilder - appendReplacement requires
// the antediluvian StringBuffer.
StringBuffer buf = new StringBuffer(text.length() + 200);
// Since Java 9, Matcher.appendReplacement accepts StringBuilder
StringBuilder buf = new StringBuilder(text.length() + 200);

Pattern pattern = Pattern.compile("\\$\\{([^${}]+)\\}");
Matcher matcher = pattern.matcher(text);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ protected void doMTupleTupleListTest(
// Helper methods
////////////////////////////////////////////////////////////////////////
protected String toString( TupleIterable l ) {
StringBuffer buf = new StringBuffer( 100 );
StringBuilder buf = new StringBuilder( 100 );
buf.append( '{' );
int j = 0;
for ( List<Member> o : l ) {
Expand Down
Loading