MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / setAttribute

Method setAttribute

java/src/org/openqa/selenium/grid/jmx/MBean.java:243–254  ·  view source on GitHub ↗
(Attribute attribute)

Source from the content-addressed store, hash-verified

241 }
242
243 @Override
244 public void setAttribute(Attribute attribute) {
245 try {
246 AttributeInfo attributeInfo = attributeMap.get(attribute.getName());
247 if (attributeInfo == null || attributeInfo.setter == null) {
248 return;
249 }
250 attributeInfo.setter.invoke(bean, attribute.getValue());
251 } catch (IllegalAccessException | InvocationTargetException e) {
252 LOG.severe("Error during execution: " + e.getMessage());
253 }
254 }
255
256 @Override
257 public AttributeList getAttributes(String @Nullable [] attributes) {

Callers

nothing calls this directly

Calls 6

severeMethod · 0.80
getMethod · 0.65
getNameMethod · 0.65
invokeMethod · 0.45
getValueMethod · 0.45
getMessageMethod · 0.45

Tested by

no test coverage detected