MCPcopy Create free account
hub / github.com/grpc/grpc-java / getClassName

Method getClassName

api/src/main/java/io/grpc/InternalLogId.java:100–107  ·  view source on GitHub ↗
(Class<?> type)

Source from the content-addressed store, hash-verified

98 }
99
100 private static String getClassName(Class<?> type) {
101 String className = checkNotNull(type, "type").getSimpleName();
102 if (!className.isEmpty()) {
103 return className;
104 }
105 // + 1 removes the separating '.'
106 return type.getName().substring(type.getPackage().getName().length() + 1);
107 }
108
109 public String shortName() {
110 return typeName + "<" + id + ">";

Callers 6

allocateMethod · 0.95
setUpMethod · 0.80
onBindingDiedMethod · 0.80

Calls 4

checkNotNullMethod · 0.80
getPackageMethod · 0.80
getNameMethod · 0.65
isEmptyMethod · 0.45

Tested by 4

setUpMethod · 0.64