I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit df1991d8 authored by zzz's avatar zzz
Browse files

SusiDNS: Remove null checks in comparator

unnecessary; entries cannot be null
parent 538cb52e
No related branches found
No related tags found
No related merge requests found
Pipeline #2175 passed
...@@ -31,12 +31,6 @@ public class AddressByNameSorter implements Comparator<AddressBean>, Serializabl ...@@ -31,12 +31,6 @@ public class AddressByNameSorter implements Comparator<AddressBean>, Serializabl
{ {
public int compare(AddressBean a, AddressBean b) public int compare(AddressBean a, AddressBean b)
{ {
if( a == null )
return 1;
if( b == null )
return -1;
return a.getDisplayName().compareToIgnoreCase(b.getDisplayName()); return a.getDisplayName().compareToIgnoreCase(b.getDisplayName());
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment