mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 09:09:38 +02:00
Use Integer.compare(int, int) now that we are on Android 19
This commit is contained in:
parent
3e74d11b45
commit
ca7529c192
2 changed files with 2 additions and 4 deletions
|
@ -257,9 +257,8 @@ public abstract class SASLMechanism implements Comparable<SASLMechanism> {
|
|||
|
||||
@Override
|
||||
public final int compareTo(SASLMechanism other) {
|
||||
// Switch to Integer.compare(int, int) once Smack is on Android 19 or higher.
|
||||
Integer ourPriority = getPriority();
|
||||
return ourPriority.compareTo(other.getPriority());
|
||||
return Integer.compare(ourPriority, other.getPriority());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue