8062606: Fix a typo in java.awt.Robot class
authordermashov
Fri, 31 Oct 2014 12:38:46 +0300
changeset 27509 74d054f0fee6
parent 27508 6349bac46ffe
child 27510 573e93cd3123
8062606: Fix a typo in java.awt.Robot class Reviewed-by: yan, serb
jdk/src/java.desktop/share/classes/java/awt/Robot.java
--- a/jdk/src/java.desktop/share/classes/java/awt/Robot.java	Thu Oct 30 13:36:44 2014 -0700
+++ b/jdk/src/java.desktop/share/classes/java/awt/Robot.java	Fri Oct 31 12:38:46 2014 +0300
@@ -562,7 +562,7 @@
         try {
             SunToolkit.flushPendingEvents();
             // 7185258: realSync() call blocks all DnD tests on OS X
-            if (AccessController.doPrivileged(OSInfo.getOSTypeAction()) = OSInfo.OSType.MACOSX) {
+            if (AccessController.doPrivileged(OSInfo.getOSTypeAction()) == OSInfo.OSType.MACOSX) {
                 // post a dummy event to the queue so we know when
                 // all the events before it have been processed
                 EventQueue.invokeAndWait( new Runnable() {