Skip to content

Commit 83f8b8f

Browse files
committed
remove an unnecessary typecast
1 parent e89a6e4 commit 83f8b8f

File tree

1 file changed

+1
-2
lines changed
  • hibernate-reactive-core/src/main/java/org/hibernate/reactive/context/impl

1 file changed

+1
-2
lines changed

hibernate-reactive-core/src/main/java/org/hibernate/reactive/context/impl/VertxContext.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,10 @@ public <T> void put(Key<T> key, T instance) {
4343
}
4444

4545
@Override
46-
@SuppressWarnings("unchecked")
4746
public <T> T get(Key<T> key) {
4847
final io.vertx.core.Context context = Vertx.currentContext();
4948
if ( context != null ) {
50-
return (T) context.getLocal( key );
49+
return context.getLocal( key );
5150
}
5251
else {
5352
return null;

0 commit comments

Comments
 (0)