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