Skip to content

Commit

Permalink
fix: add generic typing to TypeFactory constants (#1792)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvojtechovsky authored and monperrus committed Jan 1, 2018
1 parent 5f1cda0 commit aefe604
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/spoon/reflect/factory/TypeFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -229,28 +229,28 @@ public CtTypeReference<Double> doublePrimitiveType() {
/**
* Returns a reference on the short type.
*/
public CtTypeReference<?> shortType() {
public CtTypeReference<Short> shortType() {
return SHORT.clone();
}

/**
* Returns a reference on the short primitive type.
*/
public CtTypeReference<?> shortPrimitiveType() {
public CtTypeReference<Short> shortPrimitiveType() {
return SHORT_PRIMITIVE.clone();
}

/**
* Returns a reference on the date type.
*/
public CtTypeReference<?> dateType() {
public CtTypeReference<Date> dateType() {
return DATE.clone();
}

/**
* Returns a reference on the object type.
*/
public CtTypeReference<?> objectType() {
public CtTypeReference<Object> objectType() {
return OBJECT.clone();
}

Expand Down

0 comments on commit aefe604

Please sign in to comment.