Skip to content

Commit 5d32d07

Browse files
committed
catch up osgl-tool updates: Generics.typeParamImpelmenation now return Type instead of Class list
1 parent f3d86c8 commit 5d32d07

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/main/java/act/db/DaoBase.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import javax.enterprise.context.ApplicationScoped;
99
import java.lang.annotation.Annotation;
10+
import java.lang.reflect.Type;
1011
import java.util.List;
1112

1213
public abstract class DaoBase<ID_TYPE, MODEL_TYPE, QUERY_TYPE extends Dao.Query<MODEL_TYPE, QUERY_TYPE>>
@@ -84,7 +85,7 @@ protected final SecurityContext securityContext() {
8485
}
8586

8687
private void exploreTypes() {
87-
List<Class> types = Generics.typeParamImplementations(getClass(), DaoBase.class);
88+
List<Type> types = Generics.typeParamImplementations(getClass(), DaoBase.class);
8889
int sz = types.size();
8990
if (sz < 1) {
9091
return;

src/main/java/act/db/ModelBase.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import org.osgl.$;
55
import org.osgl.util.Generics;
66

7+
import java.lang.reflect.Type;
78
import java.util.List;
89

910
/**
@@ -87,7 +88,7 @@ protected final MODEL_TYPE _me() {
8788
}
8889

8990
private void exploreTypes() {
90-
List<Class> types = Generics.typeParamImplementations(getClass(), ModelBase.class);
91+
List<Type> types = Generics.typeParamImplementations(getClass(), ModelBase.class);
9192
int sz = types.size();
9293
if (sz < 1) {
9394
return;

0 commit comments

Comments
 (0)