Skip to content

Commit

Permalink
Update MetaClasses.java
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-itskovich authored Aug 30, 2020
1 parent 2d2b2d6 commit 4189c07
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static <T extends HasMetaClass<T>> MetaClass<T> forClass(Class<T> cls) {
}

@SuppressWarnings("unchecked")
public static <T> MetaClass<T> forClassUnchecked(Class<?> cls) {
public static <T> MetaClass<T> forClassUnchecked(Class cls) {
synchronized (metaClassMap) {
if (metaClassMap.get(cls) == null) {
MetaClass<T> newValue = MetaClasses.fromField(cls);
Expand All @@ -36,7 +36,7 @@ public static <K, T extends HasMetaClassWithKey<K, T>> MetaClassWithKey<K, T> fo
}

@SuppressWarnings("unchecked")
public static <K, T> MetaClassWithKey<K, T> forClassWithKeyUnchecked(Class<?> cls) {
public static <K, T> MetaClassWithKey<K, T> forClassWithKeyUnchecked(Class cls) {
return (MetaClassWithKey<K, T>) MetaClasses.forClassUnchecked(cls);
}

Expand Down

0 comments on commit 4189c07

Please sign in to comment.