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

Method doEndTag

webapps/examples/WEB-INF/classes/examples/ValuesTag.java:58–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 }
57
58 @Override
59 public int doEndTag() throws JspException {
60 JspWriter out = pageContext.getOut();
61
62 try {
63 if (!"-1".equals(objectValue)) {
64 out.print(objectValue);
65 } else if (!"-1".equals(stringValue)) {
66 out.print(stringValue);
67 } else if (longValue != -1) {
68 out.print(longValue);
69 } else if (doubleValue != -1) {
70 out.print(doubleValue);
71 } else {
72 out.print("-1");
73 }
74 } catch (IOException ioe) {
75 throw new JspTagException("IOException: " + ioe.toString(), ioe);
76 }
77 return super.doEndTag();
78 }
79}

Callers

nothing calls this directly

Calls 5

printMethod · 0.95
equalsMethod · 0.65
toStringMethod · 0.65
doEndTagMethod · 0.65
getOutMethod · 0.45

Tested by

no test coverage detected