< prev index next >
src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/SharedPropertyMap.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -46,37 +46,19 @@
/**
* Create a new shared property map from the given {@code map}.
* @param map property map to copy
*/
- public SharedPropertyMap(final PropertyMap map) {
+ SharedPropertyMap(final PropertyMap map) {
super(map);
this.switchPoint = new SwitchPoint();
}
@Override
- public void propertyAdded(final Property property, final boolean isSelf) {
- if (isSelf) {
+ public void propertyChanged(final Property property) {
invalidateSwitchPoint();
- }
- super.propertyAdded(property, isSelf);
- }
-
- @Override
- public void propertyDeleted(final Property property, final boolean isSelf) {
- if (isSelf) {
- invalidateSwitchPoint();
- }
- super.propertyDeleted(property, isSelf);
- }
-
- @Override
- public void propertyModified(final Property oldProperty, final Property newProperty, final boolean isSelf) {
- if (isSelf) {
- invalidateSwitchPoint();
- }
- super.propertyModified(oldProperty, newProperty, isSelf);
+ super.propertyChanged(property);
}
@Override
synchronized boolean isValidSharedProtoMap() {
return switchPoint != null;
< prev index next >