MCPcopy Index your code
hub / github.com/apache/tomcat / getSmap

Method getSmap

java/org/apache/jasper/compiler/Compiler.java:118–133  ·  view source on GitHub ↗

Returns the source map for the specified class. @param className the class name @return the source map, or null if not available

(String className)

Source from the content-addressed store, hash-verified

116 * @return the source map, or {@code null} if not available
117 */
118 public SmapStratum getSmap(String className) {
119
120 Map<String,SmapStratum> smaps = ctxt.getRuntimeContext().getSmaps();
121 SmapStratum smap = smaps.get(className);
122
123 if (smap == null && !options.isSmapSuppressed()) {
124 // Tomcat was restarted so cached SMAP has been lost. However, it
125 // was written to the class file so it can be recovered.
126 smap = SmapUtil.loadSmap(className, ctxt.getJspLoader());
127 if (smap != null) {
128 smaps.put(className, smap);
129 }
130 }
131
132 return smap;
133 }
134
135
136 /**

Callers 1

handleJspExceptionMethod · 0.45

Calls 7

loadSmapMethod · 0.95
getSmapsMethod · 0.80
getRuntimeContextMethod · 0.80
getJspLoaderMethod · 0.80
getMethod · 0.65
isSmapSuppressedMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected