mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Refactor TypeManager - remove unnecessary add() method from interface allowing it to be private
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user