Skip to content

Commit

Permalink
3385 - fix for the turkish eye - extra capitalize place
Browse files Browse the repository at this point in the history
  • Loading branch information
bbakerman committed Dec 4, 2023
1 parent 35cf564 commit 5a9ee92
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/main/java/graphql/schema/diff/SchemaDiff.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import static graphql.language.TypeKind.getTypeKind;
import static graphql.schema.idl.TypeInfo.getAstDesc;
import static graphql.schema.idl.TypeInfo.typeInfo;
import static graphql.util.StringKit.capitalize;

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

private static String capitalize(String name) {
if (name != null && name.length() != 0) {
char[] chars = name.toCharArray();
chars[0] = Character.toUpperCase(chars[0]);
return new String(chars);
} else {
return name;
}
}

private String mkDotName(String... objectNames) {
return String.join(".", objectNames);
Expand Down

0 comments on commit 5a9ee92

Please sign in to comment.