You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by tv...@apache.org on 2009/11/30 16:38:08 UTC

svn commit: r885463 - in /incubator/pivot/trunk: core/src/org/apache/pivot/collections/Collection.java wtk/src/org/apache/pivot/wtk/DesktopApplicationContext.java

Author: tvolkert
Date: Mon Nov 30 15:38:07 2009
New Revision: 885463

URL: http://svn.apache.org/viewvc?rev=885463&view=rev
Log:
Minor updates

Modified:
    incubator/pivot/trunk/core/src/org/apache/pivot/collections/Collection.java
    incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/DesktopApplicationContext.java

Modified: incubator/pivot/trunk/core/src/org/apache/pivot/collections/Collection.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/core/src/org/apache/pivot/collections/Collection.java?rev=885463&r1=885462&r2=885463&view=diff
==============================================================================
--- incubator/pivot/trunk/core/src/org/apache/pivot/collections/Collection.java (original)
+++ incubator/pivot/trunk/core/src/org/apache/pivot/collections/Collection.java Mon Nov 30 15:38:07 2009
@@ -47,6 +47,9 @@
     /**
      * Sets the collection's sort order, re-ordering the collection's contents
      * and ensuring that new entries preserve the sort order.
+     * <p>
+     * Calling this method more than once with the same comparator will re-sort
+     * the collection.
      *
      * @param comparator
      * The comparator used to order elements in the collection, or null if the

Modified: incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/DesktopApplicationContext.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/DesktopApplicationContext.java?rev=885463&r1=885462&r2=885463&view=diff
==============================================================================
--- incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/DesktopApplicationContext.java (original)
+++ incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/DesktopApplicationContext.java Mon Nov 30 15:38:07 2009
@@ -381,11 +381,11 @@
             // Load the JNLP classes dynamically because they are only available
             // when run via javaws
             Class<?> serviceManagerClass = Class.forName("javax.jnlp.ServiceManager");
-            Method lookupMethod = serviceManagerClass.getMethod("lookup", new Class<?>[] {String.class});
+            Method lookupMethod = serviceManagerClass.getMethod("lookup", String.class);
             Object basicService = lookupMethod.invoke(null, "javax.jnlp.BasicService");
 
             Class<?> basicServiceClass = Class.forName("javax.jnlp.BasicService");
-            Method getCodeBaseMethod = basicServiceClass.getMethod("getCodeBase", new Class<?>[] {});
+            Method getCodeBaseMethod = basicServiceClass.getMethod("getCodeBase");
             URL codeBase = (URL)getCodeBaseMethod.invoke(basicService);
 
             if (codeBase != null) {