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

Method getInstance

java/org/apache/jasper/compiler/TldCache.java:75–81  ·  view source on GitHub ↗

Returns the TldCache instance for the given servlet context. @param servletContext the servlet context @return the TldCache instance

(ServletContext servletContext)

Source from the content-addressed store, hash-verified

73 * @return the TldCache instance
74 */
75 public static TldCache getInstance(ServletContext servletContext) {
76 if (servletContext == null) {
77 throw new IllegalArgumentException(
78 Localizer.getMessage("org.apache.jasper.compiler.TldCache.servletContextNull"));
79 }
80 return (TldCache) servletContext.getAttribute(SERVLET_CONTEXT_ATTRIBUTE_NAME);
81 }
82
83
84 /**

Callers 1

Calls 2

getMessageMethod · 0.95
getAttributeMethod · 0.65

Tested by

no test coverage detected