Skip to content

Commit b727f24

Browse files
committed
Update Collections.
1 parent 05019a9 commit b727f24

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
subprojects {
1616
group = 'org.httprpc'
17-
version = '5.3.2'
17+
version = '5.3.3'
1818

1919
repositories {
2020
mavenCentral()

kilo-client/src/main/java/org/httprpc/kilo/util/Collections.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public static <K, V> Map<K, V> immutableMapOf(Map.Entry<K, V>... entries) {
135135
* A map containing the provided entries sorted by key.
136136
*/
137137
@SafeVarargs
138-
public static <K extends Comparable<K>, V> SortedMap<K, V> sortedMapOf(Map.Entry<K, V>... entries) {
138+
public static <K extends Comparable<? super K>, V> SortedMap<K, V> sortedMapOf(Map.Entry<K, V>... entries) {
139139
var map = new TreeMap<K, V>();
140140

141141
for (var entry : entries) {
@@ -218,7 +218,7 @@ public static <E> Set<E> immutableSetOf(E... elements) {
218218
* A sorted set containing the provided elements.
219219
*/
220220
@SafeVarargs
221-
public static <E extends Comparable<E>> SortedSet<E> sortedSetOf(E... elements) {
221+
public static <E extends Comparable<? super E>> SortedSet<E> sortedSetOf(E... elements) {
222222
var set = new TreeSet<E>();
223223

224224
java.util.Collections.addAll(set, elements);

0 commit comments

Comments
 (0)