Skip to content

Commit 924c829

Browse files
committed
minor cleanups
1 parent 2991d73 commit 924c829

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

hibernate-reactive-core/src/main/java/org/hibernate/reactive/common/Identifier.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,16 @@ public static <T,I> Id<T> id(SingularAttribute<T,I> attribute, I id) {
9090
return new Id<>(attribute, id);
9191
}
9292

93-
public static <T,I> Id<T> id(String attributeName, Object id) {
93+
public static <T> Id<T> id(String attributeName, Object id) {
9494
return new Id<>(attributeName, id);
9595
}
9696

97-
public static <T,I> Id<T> id(Class<T> entityClass, String attributeName, Object id) {
97+
public static <T> Id<T> id(Class<T> entityClass, String attributeName, Object id) {
9898
return new Id<>(attributeName, id);
9999
}
100100

101101
@SafeVarargs
102-
public static <T,I> Identifier<T> composite(Id<T>... ids) {
102+
public static <T> Identifier<T> composite(Id<T>... ids) {
103103
return new Composite<>(ids);
104104
}
105105
}

hibernate-reactive-core/src/main/java/org/hibernate/reactive/mutiny/impl/MutinySessionImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import org.hibernate.FlushMode;
2222
import org.hibernate.LockMode;
2323
import org.hibernate.LockOptions;
24-
import org.hibernate.graph.spi.RootGraphImplementor;
24+
import org.hibernate.graph.RootGraph;
2525
import org.hibernate.reactive.common.AffectedEntities;
2626
import org.hibernate.reactive.common.Identifier;
2727
import org.hibernate.reactive.common.ResultSetMapping;
@@ -228,7 +228,7 @@ public <T> Uni<T> find(Class<T> entityClass, Object primaryKey, LockOptions lock
228228

229229
@Override
230230
public <T> Uni<T> find(EntityGraph<T> entityGraph, Object id) {
231-
Class<T> entityClass = ( (RootGraphImplementor<T>) entityGraph ).getGraphedType().getJavaType();
231+
Class<T> entityClass = ( (RootGraph<T>) entityGraph ).getGraphedType().getJavaType();
232232
return uni( () -> delegate.reactiveFind( entityClass, id, null, entityGraph ) );
233233
}
234234

hibernate-reactive-core/src/main/java/org/hibernate/reactive/stage/impl/StageSessionImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.hibernate.FlushMode;
2121
import org.hibernate.LockMode;
2222
import org.hibernate.LockOptions;
23-
import org.hibernate.graph.spi.RootGraphImplementor;
23+
import org.hibernate.graph.RootGraph;
2424
import org.hibernate.jpa.internal.util.LockModeTypeHelper;
2525
import org.hibernate.reactive.common.AffectedEntities;
2626
import org.hibernate.reactive.common.Identifier;
@@ -150,7 +150,7 @@ public <T> CompletionStage<T> find(Class<T> entityClass, Object primaryKey, Lock
150150

151151
@Override
152152
public <T> CompletionStage<T> find(EntityGraph<T> entityGraph, Object id) {
153-
Class<T> entityClass = ( (RootGraphImplementor<T>) entityGraph ).getGraphedType().getJavaType();
153+
Class<T> entityClass = ( (RootGraph<T>) entityGraph ).getGraphedType().getJavaType();
154154
return delegate.reactiveFind( entityClass, id, null, entityGraph );
155155
}
156156

0 commit comments

Comments
 (0)