Commit 5a8e2130 authored by Christian P. MOMON's avatar Christian P. MOMON
Browse files

Migrated code to Java 8.

parent 20058881
......@@ -1626,7 +1626,7 @@ public class StringList extends ArrayList<String> implements CharSequence, Appen
{
StringList result;
Collections.sort(this, Collator.getInstance());
sort(Collator.getInstance());
//
result = this;
......@@ -1640,11 +1640,11 @@ public class StringList extends ArrayList<String> implements CharSequence, Appen
*
* @return This List.
*/
public StringList sort(final Comparator<String> comparator)
public StringList sortBy(final Comparator<? super String> comparator)
{
StringList result;
Collections.sort(this, comparator);
sort(comparator);
//
result = this;
......
......@@ -29,7 +29,6 @@ import fr.devinsy.util.strings.StringsUtils;
*/
public class StringsDemo
{
/**
* The main method.
*
......
......@@ -369,7 +369,7 @@ public class StringListTest
buffer.append("ghi");
Assert.assertTrue(buffer.containsAnyIgnoreCase("aaa", "bbb", "abc"));
Assert.assertTrue(buffer.containsAnyIgnoreCase("aaa", "bbb", "dbf"));
Assert.assertFalse(buffer.containsAnyIgnoreCase("aaa", "bbb", "dbf"));
Assert.assertTrue(buffer.containsAnyIgnoreCase("aaa", "bbb", "ghi"));
Assert.assertTrue(buffer.containsAnyIgnoreCase("aaa", "bbb", "Abc"));
Assert.assertTrue(buffer.containsAnyIgnoreCase("aaa", "bbb", "dEf"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment