mirror of
https://github.com/LamGC/Oracle-Sentry.git
synced 2025-07-01 12:57:27 +00:00
fix: 同步调整 SshAuthInfoSerializer 实例获取方式.
从原来的创建新实例修改为获取单例, 适配修改.
This commit is contained in:
@ -11,7 +11,7 @@ import static org.junit.jupiter.api.Assertions.*;
|
||||
class SshAuthInfoSerializerTest {
|
||||
|
||||
private final static Gson gson = new GsonBuilder()
|
||||
.registerTypeAdapter(SshAuthInfo.class, new SshAuthInfoSerializer())
|
||||
.registerTypeAdapter(SshAuthInfo.class, SshAuthInfoSerializer.INSTANCE)
|
||||
.create();
|
||||
|
||||
private JsonObject getPasswordAuthObject() {
|
||||
|
Reference in New Issue
Block a user