File tree Expand file tree Collapse file tree
objectbox-java/src/main/java/io/objectbox Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public abstract class Cursor<T> implements Closeable {
5050
5151 static native boolean nativeSeek (long cursor , long key );
5252
53- native Object nativeGetAllEntities (long cursor );
53+ native List < T > nativeGetAllEntities (long cursor );
5454
5555 static native Object nativeGetEntity (long cursor , long key );
5656
@@ -199,7 +199,7 @@ public T first() {
199199
200200 /** ~10% slower than iterating with {@link #first()} and {@link #next()} as done by {@link Box#getAll()}. */
201201 public List <T > getAll () {
202- return ( List ) nativeGetAllEntities (cursor );
202+ return nativeGetAllEntities (cursor );
203203 }
204204
205205 public boolean deleteEntity (long key ) {
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public class Transaction implements Closeable {
5656
5757 native long nativeCreateKeyValueCursor (long transaction );
5858
59- native long nativeCreateCursor (long transaction , String entityName , Class entityClass );
59+ native long nativeCreateCursor (long transaction , String entityName , Class <?> entityClass );
6060
6161 // native long nativeGetStore(long transaction);
6262
Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ public static ReflectionCache getInstance() {
3232 return instance ;
3333 }
3434
35- private final Map <Class , Map <String , Field >> fields = new HashMap <>();
35+ private final Map <Class <?> , Map <String , Field >> fields = new HashMap <>();
3636
3737 @ Nonnull
38- public synchronized Field getField (Class clazz , String name ) {
38+ public synchronized Field getField (Class <?> clazz , String name ) {
3939 Map <String , Field > fieldsForClass = fields .get (clazz );
4040 if (fieldsForClass == null ) {
4141 fieldsForClass = new HashMap <>();
You can’t perform that action at this time.
0 commit comments