harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r481908 - /harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/Beans.java
Date Sun, 03 Dec 2006 21:31:52 GMT
Author: ndbeyer
Date: Sun Dec  3 13:31:51 2006
New Revision: 481908

URL: http://svn.apache.org/viewvc?view=rev&rev=481908
Log:
Add synchronized keywords to guarantee atomic behavior of designTime and guiAvailable accessors
and mutators.

Modified:
    harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/Beans.java

Modified: harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/Beans.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/Beans.java?view=diff&rev=481908&r1=481907&r2=481908
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/Beans.java (original)
+++ harmony/enhanced/classlib/trunk/modules/beans/src/main/java/java/beans/Beans.java Sun
Dec  3 13:31:51 2006
@@ -120,23 +120,23 @@
         return targetType == null ? false : targetType.isInstance(bean);
     }
 
-    public static void setGuiAvailable(boolean isGuiAvailable)
+    public static synchronized void setGuiAvailable(boolean isGuiAvailable)
             throws SecurityException {
         checkPropertiesAccess();
         guiAvailable = isGuiAvailable;
     }
 
-    public static void setDesignTime(boolean isDesignTime)
+    public static synchronized void setDesignTime(boolean isDesignTime)
             throws SecurityException {
         checkPropertiesAccess();
         designTime = isDesignTime;
     }
 
-    public static boolean isGuiAvailable() {
+    public static synchronized boolean isGuiAvailable() {
         return guiAvailable;
     }
 
-    public static boolean isDesignTime() {
+    public static synchronized boolean isDesignTime() {
         return designTime;
     }
 



Mime
View raw message