mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 06:12:05 +01:00
disco: avoid boxing to Integer when not necessary
This commit is contained in:
parent
39a833166a
commit
4beaae7d6a
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*
|
||||
* Copyright 2018 Florian Schmaus.
|
||||
* Copyright 2018-2020 Florian Schmaus.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -47,7 +47,7 @@ public abstract class DiscoInfoLookupShortcutMechanism implements Comparable<Dis
|
|||
|
||||
@Override
|
||||
public final int compareTo(DiscoInfoLookupShortcutMechanism other) {
|
||||
Integer ourPriority = getPriority();
|
||||
int ourPriority = getPriority();
|
||||
return Integer.compare(ourPriority, other.getPriority());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue