Skip to content

Commit

Permalink
HSEARCH-3277 Remove the casts of IDs to Serializable where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere committed Oct 6, 2022
1 parent 40c93b3 commit 8660da9
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -6,7 +6,6 @@
*/
package org.hibernate.search.mapper.orm.loading.impl;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

Expand Down Expand Up @@ -87,7 +86,7 @@ protected List<E> doLoadEntities(List<?> allIds, Long timeout) {
private EntityKey[] toEntityKeys(List<?> ids) {
EntityKey[] entityKeys = new EntityKey[ids.size()];
for ( int i = 0; i < ids.size(); i++ ) {
Serializable id = (Serializable) ids.get( i );
Object id = ids.get( i );
EntityKey entityKey = sessionContext.session().generateEntityKey( id, entityPersister );
entityKeys[i] = ( entityKey );
}
Expand Down

0 comments on commit 8660da9

Please sign in to comment.