MCPcopy Index your code
hub / github.com/ccxt/ccxt / capitalizeFirst

Method capitalizeFirst

java/tests/src/main/java/tests/BaseTest.java:738–744  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

736 }
737
738 private static String capitalizeFirst(String s) {
739 if (s == null || s.isEmpty()) return s;
740 char first = s.charAt(0);
741 char upper = Character.toUpperCase(first);
742 if (s.length() == 1) return String.valueOf(upper);
743 return upper + s.substring(1);
744 }
745
746 private static Class<?> tryLoadClass(String fqcn) {
747 try {

Callers 2

getTestFilesHelperMethod · 0.95
callMethodMethod · 0.95

Calls 2

isEmptyMethod · 0.80
lengthMethod · 0.45

Tested by

no test coverage detected