src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/PropertyMap.java

Print this page

        

*** 484,494 **** * @param oldProperty Property to replace. * @param newProperty New {@link Property}. * * @return New {@link PropertyMap} with {@link Property} replaced. */ ! PropertyMap replaceProperty(final Property oldProperty, final Property newProperty) { if (listeners != null) { listeners.propertyModified(oldProperty, newProperty); } // Add replaces existing property. final PropertyHashMap newProperties = properties.immutableReplace(oldProperty, newProperty); --- 484,494 ---- * @param oldProperty Property to replace. * @param newProperty New {@link Property}. * * @return New {@link PropertyMap} with {@link Property} replaced. */ ! public PropertyMap replaceProperty(final Property oldProperty, final Property newProperty) { if (listeners != null) { listeners.propertyModified(oldProperty, newProperty); } // Add replaces existing property. final PropertyHashMap newProperties = properties.immutableReplace(oldProperty, newProperty);