HHH-13549 Fix a couple typos

This commit is contained in:
Sanne Grinovero 2019-08-07 22:05:18 +01:00
parent a1498331aa
commit 0bf9bb1423
1 changed files with 3 additions and 3 deletions

View File

@ -56,13 +56,13 @@ public final class StringHelper {
return buf.toString();
}
public static String join(String seperator, Iterator<?> objects) {
public static String join(String separator, Iterator<?> objects) {
StringBuilder buf = new StringBuilder();
if ( objects.hasNext() ) {
buf.append( objects.next() );
}
while ( objects.hasNext() ) {
buf.append( seperator ).append( objects.next() );
buf.append( separator ).append( objects.next() );
}
return buf.toString();
}
@ -239,7 +239,7 @@ public final class StringHelper {
public static String replaceOnce(String template, String placeholder, String replacement) {
if ( template == null ) {
return null; // returnign null!
return null; // returning null!
}
int loc = template.indexOf( placeholder );
if ( loc < 0 ) {