@@ -136,11 +136,11 @@ public static String getVersionNative() {
136136
137137 /** @return entity ID */
138138 // TODO only use ids once we have them in Java
139- static native int nativeRegisterEntityClass (long store , String entityName , Class entityClass );
139+ static native int nativeRegisterEntityClass (long store , String entityName , Class <?> entityClass );
140140
141141 // TODO only use ids once we have them in Java
142142 static native void nativeRegisterCustomType (long store , int entityId , int propertyId , String propertyName ,
143- Class <? extends PropertyConverter > converterClass , Class customType );
143+ Class <? extends PropertyConverter > converterClass , Class <?> customType );
144144
145145 static native String nativeDiagnose (long store );
146146
@@ -164,10 +164,10 @@ public static boolean isObjectBrowserAvailable() {
164164 private final File directory ;
165165 private final String canonicalPath ;
166166 private final long handle ;
167- private final Map <Class , String > dbNameByClass = new HashMap <>();
168- private final Map <Class , Integer > entityTypeIdByClass = new HashMap <>();
167+ private final Map <Class <?> , String > dbNameByClass = new HashMap <>();
168+ private final Map <Class <?> , Integer > entityTypeIdByClass = new HashMap <>();
169169 private final Map <Class <?>, EntityInfo <?>> propertiesByClass = new HashMap <>();
170- private final LongHashMap <Class > classByEntityTypeId = new LongHashMap <>();
170+ private final LongHashMap <Class <?> > classByEntityTypeId = new LongHashMap <>();
171171 private final int [] allEntityTypeIds ;
172172 private final Map <Class <?>, Box <?>> boxes = new ConcurrentHashMap <>();
173173 private final Set <Transaction > transactions = Collections .newSetFromMap (new WeakHashMap <>());
@@ -333,24 +333,24 @@ private void checkOpen() {
333333 }
334334 }
335335
336- String getDbName (Class entityClass ) {
336+ String getDbName (Class <?> entityClass ) {
337337 return dbNameByClass .get (entityClass );
338338 }
339339
340- Integer getEntityTypeId (Class entityClass ) {
340+ Integer getEntityTypeId (Class <?> entityClass ) {
341341 return entityTypeIdByClass .get (entityClass );
342342 }
343343
344344 @ Internal
345- public int getEntityTypeIdOrThrow (Class entityClass ) {
345+ public int getEntityTypeIdOrThrow (Class <?> entityClass ) {
346346 Integer id = entityTypeIdByClass .get (entityClass );
347347 if (id == null ) {
348348 throw new DbSchemaException ("No entity registered for " + entityClass );
349349 }
350350 return id ;
351351 }
352352
353- public Collection <Class > getAllEntityClasses () {
353+ public Collection <Class <?> > getAllEntityClasses () {
354354 return dbNameByClass .keySet ();
355355 }
356356
@@ -360,8 +360,8 @@ int[] getAllEntityTypeIds() {
360360 }
361361
362362 @ Internal
363- Class getEntityClassOrThrow (int entityTypeId ) {
364- Class clazz = classByEntityTypeId .get (entityTypeId );
363+ Class <?> getEntityClassOrThrow (int entityTypeId ) {
364+ Class <?> clazz = classByEntityTypeId .get (entityTypeId );
365365 if (clazz == null ) {
366366 throw new DbSchemaException ("No entity registered for type ID " + entityTypeId );
367367 }
0 commit comments