Skip to content

Commit

Permalink
Clean up TypeMapper
Browse files Browse the repository at this point in the history
  • Loading branch information
eranl committed Dec 12, 2023
1 parent 708b870 commit 2394d26
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/main/java/org/influxdb/impl/TypeMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ static TypeMapper of(ParameterizedType type, Class<?> clazz) {
return typeMapping::get;
}

static TypeMapper of(TypeMapper innerMapper, TypeMapper outerMapper) {
return typeVariable -> map(typeVariable, innerMapper, outerMapper);
}

static TypeMapper empty() {
return EMPTY;
}
Expand All @@ -70,14 +66,5 @@ default Type resolve(Type type) {
return type;
}

static Type map(TypeVariable<?> typeVariable, TypeMapper innerMapper, TypeMapper outerMapper) {
Type type = innerMapper.get(typeVariable);
if (type != null) {
return type;
}

return outerMapper.get(typeVariable);
}

Type get(TypeVariable<?> typeVariable);
}

0 comments on commit 2394d26

Please sign in to comment.