Skip to content

Commit

Permalink
Use wildcard for Class
Browse files Browse the repository at this point in the history
  • Loading branch information
RohanNagar committed May 16, 2018
1 parent 3a92670 commit 4893a09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
public class PropertyValidationRule {
private final String name;
private final Class type;
private final Class<?> type;

public PropertyValidationRule(@JsonProperty("name") String name,
@JsonProperty("type") String type) {
Expand All @@ -24,7 +24,7 @@ public String getName() {
return name;
}

public Class getType() {
public Class<?> getType() {
return type;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public boolean isValidPropertiesMap(Map<String, Object> properties) {
* @param typename The string to parse.
* @return The type that is represented by the string.
*/
static Class getType(String typename) {
static Class<?> getType(String typename) {
switch (typename) {
case "string":
return String.class;
Expand Down

0 comments on commit 4893a09

Please sign in to comment.