MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / narrow

Method narrow

java/src/org/openqa/selenium/json/Types.java:28–38  ·  view source on GitHub ↗
(Type type)

Source from the content-addressed store, hash-verified

26 }
27
28 static Class<?> narrow(Type type) {
29 if (type instanceof Class) {
30 return (Class<?>) type;
31 }
32
33 if (type instanceof ParameterizedType) {
34 return narrow(((ParameterizedType) type).getRawType());
35 }
36
37 throw new JsonException("Unable to narrow " + type.getClass());
38 }
39}

Callers 4

applyMethod · 0.45
applyMethod · 0.45
buildCoercerMethod · 0.45

Calls 1

getClassMethod · 0.65

Tested by

no test coverage detected