Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
kaifox committed Feb 23, 2017
1 parent 801f9e3 commit ddad8ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private TensorbackedInternals() {
* @return the set of dimentions (classses of coordinates) which are required to create an instance of the given
* class.
*/
public static Set<Class<?>> dimensionsOf(Class<? extends Tensorbacked<?>> tensorBackedClass) {
public static <T extends Tensorbacked<?>> Set<Class<?>> dimensionsOf(Class<T> tensorBackedClass) {
Dimensions dimensionAnnotation = tensorBackedClass.getAnnotation(Dimensions.class);
if (dimensionAnnotation == null) {
throw new IllegalArgumentException(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static <V, TB extends Tensorbacked<V>> TensorbackedBuilder<V, TB> builder
* @return the set of dimensions (classes of coordinates) which are required to create an instance of the given
* class.
*/
public static Set<Class<?>> dimensionsOf(Class<? extends Tensorbacked<?>> tensorBackedClass) {
public static <T extends Tensorbacked<?>> Set<Class<?>> dimensionsOf(Class<T> tensorBackedClass) {
return TensorbackedInternals.dimensionsOf(tensorBackedClass);
}

Expand Down

0 comments on commit ddad8ed

Please sign in to comment.