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

Method checkBounds

java/jakarta/el/ArrayELResolver.java:153–157  ·  view source on GitHub ↗
(Object base, int idx)

Source from the content-addressed store, hash-verified

151 }
152
153 private static void checkBounds(Object base, int idx) {
154 if (idx < 0 || idx >= Array.getLength(base)) {
155 throw new PropertyNotFoundException(new ArrayIndexOutOfBoundsException(idx).getMessage());
156 }
157 }
158
159 private static int coerce(Object property) {
160 if (property instanceof Number) {

Callers 3

getTypeMethod · 0.95
setValueMethod · 0.95
isReadOnlyMethod · 0.95

Calls 2

getLengthMethod · 0.65
getMessageMethod · 0.65

Tested by

no test coverage detected