Commit 02fcf6c3 authored by terrymanu's avatar terrymanu
Browse files

refactor DataSourceGsonTypeAdapter

parent 0f2ce3b8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ public final class DataSourceGsonTypeAdapter extends TypeAdapter<NamedDataSource
        out.beginObject();
        out.name("name").value(value.getName());
        out.name("clazz").value(value.getDataSource().getClass().getName());
        Method[] methods = value.getDataSource().getClass().getDeclaredMethods();
        Method[] methods = value.getDataSource().getClass().getMethods();
        Map<String, Method> getterMethods = new TreeMap<>();
        Map<String, Method> setterMethods = new TreeMap<>();
        for (Method each : methods) {