Revision: 1007
Author: allain.lalonde
Date: Sat Apr 17 05:05:59 2010
Log: Marking accessor for PNotificationCenter Singleton as synchronized.
This one was caught by poster in
http://code.google.com/p/piccolo2d/issues/detail?id=136#c4
http://code.google.com/p/piccolo2d/source/detail?r=1007
Modified:
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/event/PNotificationCenter.java
=======================================
---
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/event/PNotificationCenter.java
Thu Apr 15 19:27:24 2010
+++
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/event/PNotificationCenter.java
Sat Apr 17 05:05:59 2010
@@ -79,7 +79,7 @@
*
* @return singleton instance of PNotificationCenter
*/
- public static PNotificationCenter defaultCenter() {
+ public synchronized static PNotificationCenter defaultCenter() {
if (DEFAULT_CENTER == null) {
DEFAULT_CENTER = new PNotificationCenter();
}
--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en