MCPcopy Create free account
hub / github.com/apache/tomcat / convertToType

Method convertToType

test/jakarta/el/TesterELResolverTwo.java:21–30  ·  view source on GitHub ↗
(ELContext context, Object obj, Class<T> type)

Source from the content-addressed store, hash-verified

19public class TesterELResolverTwo extends TypeConverter {
20
21 @Override
22 public <T> T convertToType(ELContext context, Object obj, Class<T> type) {
23 if ("2".equals(obj) && type == String.class) {
24 context.setPropertyResolved(obj, type);
25 @SuppressWarnings("unchecked")
26 T result = (T) "TWO";
27 return result;
28 }
29 return null;
30 }
31}

Callers

nothing calls this directly

Calls 2

equalsMethod · 0.65
setPropertyResolvedMethod · 0.45

Tested by

no test coverage detected