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

Method TypeToken

java/src/org/openqa/selenium/json/TypeToken.java:27–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 private final Type type;
26
27 public TypeToken() {
28 Type superclass = getClass().getGenericSuperclass();
29 if (!(superclass instanceof ParameterizedType)) {
30 throw new IllegalStateException(String.format("%s isn't parameterized", superclass));
31 }
32 type = ((ParameterizedType) superclass).getActualTypeArguments()[0];
33 }
34
35 public Type getType() {
36 return type;

Callers

nothing calls this directly

Calls 2

getClassMethod · 0.65
formatMethod · 0.45

Tested by

no test coverage detected