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

Method isReadOnly

java/jakarta/el/MapELResolver.java:107–117  ·  view source on GitHub ↗
(ELContext context, Object base, Object property)

Source from the content-addressed store, hash-verified

105 }
106
107 @Override
108 public boolean isReadOnly(ELContext context, Object base, Object property) {
109 Objects.requireNonNull(context);
110
111 if (base instanceof Map<?,?>) {
112 context.setPropertyResolved(base, property);
113 return this.readOnly || UNMODIFIABLE.equals(base.getClass());
114 }
115
116 return this.readOnly;
117 }
118
119 @Override
120 public Class<?> getCommonPropertyType(ELContext context, Object base) {

Callers 4

testIsReadOnly01Method · 0.95
testIsReadOnly02Method · 0.95
testIsReadOnly03Method · 0.95
testIsReadOnly04Method · 0.95

Calls 2

equalsMethod · 0.65
setPropertyResolvedMethod · 0.45

Tested by 4

testIsReadOnly01Method · 0.76
testIsReadOnly02Method · 0.76
testIsReadOnly03Method · 0.76
testIsReadOnly04Method · 0.76