Skip to content

Commit 5a9ee92

Browse files
committed
3385 - fix for the turkish eye - extra capitalize place
1 parent 35cf564 commit 5a9ee92

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

src/main/java/graphql/schema/diff/SchemaDiff.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import static graphql.language.TypeKind.getTypeKind;
4040
import static graphql.schema.idl.TypeInfo.getAstDesc;
4141
import static graphql.schema.idl.TypeInfo.typeInfo;
42+
import static graphql.util.StringKit.capitalize;
4243

4344
/**
4445
* The SchemaDiff is called with a {@link DiffSet} and will report the
@@ -974,15 +975,6 @@ private <T> Map<String, T> sortedMap(List<T> listOfNamedThings, Function<T, Stri
974975
return new TreeMap<>(map);
975976
}
976977

977-
private static String capitalize(String name) {
978-
if (name != null && name.length() != 0) {
979-
char[] chars = name.toCharArray();
980-
chars[0] = Character.toUpperCase(chars[0]);
981-
return new String(chars);
982-
} else {
983-
return name;
984-
}
985-
}
986978

987979
private String mkDotName(String... objectNames) {
988980
return String.join(".", objectNames);

0 commit comments

Comments
 (0)