You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/02/13 16:53:02 UTC

[commons-net] branch master updated: Inline Collections.sort(Comparator).

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git


The following commit(s) were added to refs/heads/master by this push:
     new 95c7531  Inline Collections.sort(Comparator).
95c7531 is described below

commit 95c75316de5400b0ab6e5054235cf7ea3de5527b
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Feb 13 11:52:59 2022 -0500

    Inline Collections.sort(Comparator).
---
 src/main/java/org/apache/commons/net/examples/Main.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/net/examples/Main.java b/src/main/java/org/apache/commons/net/examples/Main.java
index a278b5b..93af10c 100644
--- a/src/main/java/org/apache/commons/net/examples/Main.java
+++ b/src/main/java/org/apache/commons/net/examples/Main.java
@@ -76,7 +76,7 @@ public class Main {
             if (l.isEmpty()) {
                 return;
             }
-            Collections.sort(l);
+            l.sort(null);
             System.out.println("\nAliases and their classes:");
             for(final String s : l) {
                 System.out.printf("%-25s %s%n",s,fp.getProperty(s));