Synchronize on getContents() as well, for sake of consistency and predictability.

This commit is contained in:
Michael Jumper
2014-03-06 10:43:42 -08:00
parent e4f67e5aff
commit 390ddcd694

View File

@@ -45,7 +45,7 @@ public class ClipboardState {
* Returns the current clipboard contents.
* @return The current clipboard contents
*/
public String getContents() {
public synchronized String getContents() {
return contents;
}