HHH-13549 Fix a couple typos
This commit is contained in:
parent
a1498331aa
commit
0bf9bb1423
|
@ -56,13 +56,13 @@ public final class StringHelper {
|
||||||
return buf.toString();
|
return buf.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String join(String seperator, Iterator<?> objects) {
|
public static String join(String separator, Iterator<?> objects) {
|
||||||
StringBuilder buf = new StringBuilder();
|
StringBuilder buf = new StringBuilder();
|
||||||
if ( objects.hasNext() ) {
|
if ( objects.hasNext() ) {
|
||||||
buf.append( objects.next() );
|
buf.append( objects.next() );
|
||||||
}
|
}
|
||||||
while ( objects.hasNext() ) {
|
while ( objects.hasNext() ) {
|
||||||
buf.append( seperator ).append( objects.next() );
|
buf.append( separator ).append( objects.next() );
|
||||||
}
|
}
|
||||||
return buf.toString();
|
return buf.toString();
|
||||||
}
|
}
|
||||||
|
@ -239,7 +239,7 @@ public final class StringHelper {
|
||||||
|
|
||||||
public static String replaceOnce(String template, String placeholder, String replacement) {
|
public static String replaceOnce(String template, String placeholder, String replacement) {
|
||||||
if ( template == null ) {
|
if ( template == null ) {
|
||||||
return null; // returnign null!
|
return null; // returning null!
|
||||||
}
|
}
|
||||||
int loc = template.indexOf( placeholder );
|
int loc = template.indexOf( placeholder );
|
||||||
if ( loc < 0 ) {
|
if ( loc < 0 ) {
|
||||||
|
|
Loading…
Reference in New Issue