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

Method booleanValue

java/org/apache/jasper/compiler/JspUtil.java:237–247  ·  view source on GitHub ↗

Convert a String value to 'boolean'. Besides the standard conversions done by Boolean.parseBoolean(s), the value "yes" (ignore case) is also converted to 'true'. If 's' is null, then 'false' is returned. @param s the string to be converted @return the boolean value associated with the string s

(String s)

Source from the content-addressed store, hash-verified

235 * @return the boolean value associated with the string s
236 */
237 public static boolean booleanValue(String s) {
238 boolean b = false;
239 if (s != null) {
240 if (s.equalsIgnoreCase("yes")) {
241 b = true;
242 } else {
243 b = Boolean.parseBoolean(s);
244 }
245 }
246 return b;
247 }
248
249 /**
250 * Returns the <code>Class</code> object associated with the class or interface with the given string name.

Callers 15

visitMethod · 0.95
generateJavaMethod · 0.95
generateXmlPrologMethod · 0.95
setPropertyMethod · 0.45
connectMethod · 0.45
resetMethod · 0.45
testEncodedJspMethod · 0.45
doTestMapMethod · 0.45
doTestMethod · 0.45

Calls 2

parseBooleanMethod · 0.80
equalsIgnoreCaseMethod · 0.45

Tested by 15

testEncodedJspMethod · 0.36
doTestMapMethod · 0.36
doTestMethod · 0.36
parametersMethod · 0.36
parametersMethod · 0.36
parametersMethod · 0.36
testUseCompressionMethod · 0.36
parametersMethod · 0.36
parametersMethod · 0.36
parametersMethod · 0.36