< prev index next >

src/java.desktop/share/classes/javax/swing/event/EventListenerList.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 100,110 **** @SuppressWarnings("serial") public class EventListenerList implements Serializable { /* A null array to be shared by all empty listener lists*/ private static final Object[] NULL_ARRAY = new Object[0]; /** The list of ListenerType - Listener pairs */ ! protected transient Object[] listenerList = NULL_ARRAY; /** * Passes back the event listener list as an array * of ListenerType-listener pairs. Note that for * performance reasons, this implementation passes back --- 100,110 ---- @SuppressWarnings("serial") public class EventListenerList implements Serializable { /* A null array to be shared by all empty listener lists*/ private static final Object[] NULL_ARRAY = new Object[0]; /** The list of ListenerType - Listener pairs */ ! protected volatile transient Object[] listenerList = NULL_ARRAY; /** * Passes back the event listener list as an array * of ListenerType-listener pairs. Note that for * performance reasons, this implementation passes back
< prev index next >