diff --git a/src/java/com/samskivert/swing/RadialMenu.java b/src/java/com/samskivert/swing/RadialMenu.java index 9201736e..5dcc45cc 100644 --- a/src/java/com/samskivert/swing/RadialMenu.java +++ b/src/java/com/samskivert/swing/RadialMenu.java @@ -673,5 +673,5 @@ public class RadialMenu protected MouseHijacker _hijacker; /** Maintains a list of action listeners. */ - protected ObserverList _actlist = ObserverList.createSafeInOrder(); + protected ObserverList _actlist = ObserverList.newSafeInOrder(); } diff --git a/src/java/com/samskivert/util/ObserverList.java b/src/java/com/samskivert/util/ObserverList.java index f522d332..f7fdac55 100644 --- a/src/java/com/samskivert/util/ObserverList.java +++ b/src/java/com/samskivert/util/ObserverList.java @@ -124,7 +124,7 @@ public class ObserverList extends ArrayList * A convenience method for creating an observer list that avoids duplicating the type * parameter on the right hand side. */ - public static ObserverList createSafeInOrder () + public static ObserverList newSafeInOrder () { return new ObserverList(SAFE_IN_ORDER_NOTIFY); } @@ -133,7 +133,7 @@ public class ObserverList extends ArrayList * A convenience method for creating an observer list that avoids duplicating the type * parameter on the right hand side. */ - public static ObserverList createFastUnsafe () + public static ObserverList newFastUnsafe () { return new ObserverList(FAST_UNSAFE_NOTIFY); } @@ -142,7 +142,7 @@ public class ObserverList extends ArrayList * A convenience method for creating an observer list that avoids duplicating the type * parameter on the right hand side. */ - public static ObserverList create (int notifyPolicy, boolean allowDups) + public static ObserverList newList (int notifyPolicy, boolean allowDups) { return new ObserverList(notifyPolicy, allowDups); } diff --git a/src/java/com/samskivert/util/tests/ObserverListTest.java b/src/java/com/samskivert/util/tests/ObserverListTest.java index e04a9ca8..33d5fdf8 100644 --- a/src/java/com/samskivert/util/tests/ObserverListTest.java +++ b/src/java/com/samskivert/util/tests/ObserverListTest.java @@ -38,12 +38,11 @@ public class ObserverListTest extends TestCase public void runTest () { // Log.info("Testing safe list."); - ObserverList list = ObserverList.createSafeInOrder(); - testList(list); + ObserverList list; + testList(list = ObserverList.newSafeInOrder()); // Log.info("Testing unsafe list."); - list = ObserverList.createFastUnsafe(); - testList(list); + testList(list = ObserverList.newFastUnsafe()); } public void testList (final ObserverList list)