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

This commit is contained in:
Rob Bygrave committed 2022-09-07 22:41:56 +12:00
1 parent edddc935df
commit aeb4b8ed25
2 files changed
+1 -7

No files matched your search

@@ -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.
*/