Comment #4 on issue 136 by PNotificationCenter is a singleton but isn't declared as final

Hi Allain,

what do you think about the following extension to your change:

// Your code
    public static PNotificationCenter defaultCenter() {
// My code to make it more threadsave ?
    public synchronized static PNotificationCenter defaultCenter() {
        if (DEFAULT_CENTER == null) {
            DEFAULT_CENTER = new PNotificationCenter();
        return DEFAULT_CENTER;

You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:

Piccolo2D Developers Group:

Reply via email to