Skip to content

Commit 4d7457c

Browse files
committed
[MINOR][BUILD] Fix about 15 misc build warnings
This addresses about 15 miscellaneous warnings that appear in the current build. No functional changes, it just slightly reduces the amount of extra warning output. No. Existing tests, run manually. Closes #25852 from srowen/BuildWarnings. Authored-by: Sean Owen <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 9e6a1b8 commit 4d7457c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

common/kvstore/src/main/java/org/apache/spark/util/kvstore/InMemoryStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ private static <T> Predicate<? super T> getPredicate(
252252

253253
return (value) -> set.contains(indexValueForEntity(getter, value));
254254
} else {
255-
HashSet<Comparable> set = new HashSet<>(values.size());
255+
HashSet<Comparable<?>> set = new HashSet<>(values.size());
256256
for (Object key : values) {
257257
set.add(asKey(key));
258258
}

common/kvstore/src/main/java/org/apache/spark/util/kvstore/KVTypeInfo.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ interface Accessor {
124124

125125
Object get(Object instance) throws ReflectiveOperationException;
126126

127-
Class getType();
127+
Class<?> getType();
128128
}
129129

130130
private class FieldAccessor implements Accessor {
@@ -141,7 +141,7 @@ public Object get(Object instance) throws ReflectiveOperationException {
141141
}
142142

143143
@Override
144-
public Class getType() {
144+
public Class<?> getType() {
145145
return field.getType();
146146
}
147147
}
@@ -160,7 +160,7 @@ public Object get(Object instance) throws ReflectiveOperationException {
160160
}
161161

162162
@Override
163-
public Class getType() {
163+
public Class<?> getType() {
164164
return method.getReturnType();
165165
}
166166
}

0 commit comments

Comments
 (0)