@@ -136,11 +136,11 @@ public static String getVersionNative() {
136
136
137
137
/** @return entity ID */
138
138
// 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 );
140
140
141
141
// TODO only use ids once we have them in Java
142
142
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 );
144
144
145
145
static native String nativeDiagnose (long store );
146
146
@@ -164,10 +164,10 @@ public static boolean isObjectBrowserAvailable() {
164
164
private final File directory ;
165
165
private final String canonicalPath ;
166
166
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 <>();
169
169
private final Map <Class <?>, EntityInfo <?>> propertiesByClass = new HashMap <>();
170
- private final LongHashMap <Class > classByEntityTypeId = new LongHashMap <>();
170
+ private final LongHashMap <Class <?> > classByEntityTypeId = new LongHashMap <>();
171
171
private final int [] allEntityTypeIds ;
172
172
private final Map <Class <?>, Box <?>> boxes = new ConcurrentHashMap <>();
173
173
private final Set <Transaction > transactions = Collections .newSetFromMap (new WeakHashMap <>());
@@ -333,24 +333,24 @@ private void checkOpen() {
333
333
}
334
334
}
335
335
336
- String getDbName (Class entityClass ) {
336
+ String getDbName (Class <?> entityClass ) {
337
337
return dbNameByClass .get (entityClass );
338
338
}
339
339
340
- Integer getEntityTypeId (Class entityClass ) {
340
+ Integer getEntityTypeId (Class <?> entityClass ) {
341
341
return entityTypeIdByClass .get (entityClass );
342
342
}
343
343
344
344
@ Internal
345
- public int getEntityTypeIdOrThrow (Class entityClass ) {
345
+ public int getEntityTypeIdOrThrow (Class <?> entityClass ) {
346
346
Integer id = entityTypeIdByClass .get (entityClass );
347
347
if (id == null ) {
348
348
throw new DbSchemaException ("No entity registered for " + entityClass );
349
349
}
350
350
return id ;
351
351
}
352
352
353
- public Collection <Class > getAllEntityClasses () {
353
+ public Collection <Class <?> > getAllEntityClasses () {
354
354
return dbNameByClass .keySet ();
355
355
}
356
356
@@ -360,8 +360,8 @@ int[] getAllEntityTypeIds() {
360
360
}
361
361
362
362
@ Internal
363
- Class getEntityClassOrThrow (int entityTypeId ) {
364
- Class clazz = classByEntityTypeId .get (entityTypeId );
363
+ Class <?> getEntityClassOrThrow (int entityTypeId ) {
364
+ Class <?> clazz = classByEntityTypeId .get (entityTypeId );
365
365
if (clazz == null ) {
366
366
throw new DbSchemaException ("No entity registered for type ID " + entityTypeId );
367
367
}
0 commit comments