Refactor TypeManager - remove unnecessary add() method from interface allowing it to be private

This commit is contained in:
Rob Bygrave
2022-09-07 22:41:56 +12:00
parent edddc935df
commit aeb4b8ed25
2 changed files with 1 additions and 7 deletions
@@ -159,8 +159,7 @@ public final class DefaultTypeManager implements TypeManager {
/**
* Register a custom ScalarType.
*/
@Override
public void add(ScalarType<?> scalarType) {
private void add(ScalarType<?> scalarType) {
typeMap.put(scalarType.type(), scalarType);
logAdd(scalarType);
}
@@ -11,11 +11,6 @@ import java.lang.reflect.Type;
*/
public interface TypeManager {
/**
* Register a ScalarType with the system.
*/
void add(ScalarType<?> scalarType);
/**
* Return the scalar type for the given logical type.
*/