mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-22 15:10:02 +00:00
Refactor TypeManager - remove unnecessary add() method from interface allowing it to be private
This commit is contained in:
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.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user