-
-
Save cemo/9236abe34d2b126242ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void setAttribute(String name, Object value) { | |
synchronized (this){ | |
Object attribute = getAttribute(name); | |
if(!Objects.equal(value, attribute) ){ | |
super.setAttribute(name, value); | |
dirty = true; | |
} | |
} | |
} | |
@Override | |
public void removeAttribute(String name) { | |
synchronized (this){ | |
Object attribute = getAttribute(name); | |
if(attribute != null){ | |
super.removeAttribute(name); | |
dirty = true; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment