File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
objectbox-java/src/main/java/io/objectbox Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public abstract class Cursor<T> implements Closeable {
50
50
51
51
static native boolean nativeSeek (long cursor , long key );
52
52
53
- native Object nativeGetAllEntities (long cursor );
53
+ native List < T > nativeGetAllEntities (long cursor );
54
54
55
55
static native Object nativeGetEntity (long cursor , long key );
56
56
@@ -199,7 +199,7 @@ public T first() {
199
199
200
200
/** ~10% slower than iterating with {@link #first()} and {@link #next()} as done by {@link Box#getAll()}. */
201
201
public List <T > getAll () {
202
- return ( List ) nativeGetAllEntities (cursor );
202
+ return nativeGetAllEntities (cursor );
203
203
}
204
204
205
205
public boolean deleteEntity (long key ) {
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public class Transaction implements Closeable {
56
56
57
57
native long nativeCreateKeyValueCursor (long transaction );
58
58
59
- native long nativeCreateCursor (long transaction , String entityName , Class entityClass );
59
+ native long nativeCreateCursor (long transaction , String entityName , Class <?> entityClass );
60
60
61
61
// native long nativeGetStore(long transaction);
62
62
Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ public static ReflectionCache getInstance() {
32
32
return instance ;
33
33
}
34
34
35
- private final Map <Class , Map <String , Field >> fields = new HashMap <>();
35
+ private final Map <Class <?> , Map <String , Field >> fields = new HashMap <>();
36
36
37
37
@ Nonnull
38
- public synchronized Field getField (Class clazz , String name ) {
38
+ public synchronized Field getField (Class <?> clazz , String name ) {
39
39
Map <String , Field > fieldsForClass = fields .get (clazz );
40
40
if (fieldsForClass == null ) {
41
41
fieldsForClass = new HashMap <>();
You can’t perform that action at this time.
0 commit comments