Synchronize on getContents() as well, for sake of consistency and predictability.
This commit is contained in:
1 parent
e4f67e5aff
commit
390ddcd694
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user