Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Lo1nt committed Jan 11, 2024
1 parent a54eea3 commit a043424
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,18 @@ public static void clear() {
genericServiceMap.clear();
}

protected CustomSerializer getObjCustomSerializer(Object obj) {
protected CustomSerializer getObjCustomSerializer(Object obj) {
if (obj == null) {
return null;
}
return getSerializer(obj.getClass());
return getCustomSerializer(obj.getClass());
}

protected CustomSerializer getSerializer(Class clazz) {
protected CustomSerializer getCustomSerializer(Class clazz) {
return customSerializers.get(clazz);
}

protected void addSerializer(Class clazz, CustomSerializer serializerManager) {
public void addCustomSerializer(Class clazz, CustomSerializer serializerManager) {
customSerializers.put(clazz, serializerManager);
}
}

0 comments on commit a043424

Please sign in to comment.