From 0d38fedc421f6b28888f6817f210c58268ca601f Mon Sep 17 00:00:00 2001 From: LamGC Date: Sun, 15 Aug 2021 13:57:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=8C=E6=AD=A5=E8=B0=83=E6=95=B4=20S?= =?UTF-8?q?shAuthInfoSerializer=20=E5=AE=9E=E4=BE=8B=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=96=B9=E5=BC=8F.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 从原来的创建新实例修改为获取单例, 适配修改. --- .../sentry/oci/compute/ssh/SshAuthInfoSerializerTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/net/lamgc/oracle/sentry/oci/compute/ssh/SshAuthInfoSerializerTest.java b/src/test/java/net/lamgc/oracle/sentry/oci/compute/ssh/SshAuthInfoSerializerTest.java index 694146a..099a5e7 100644 --- a/src/test/java/net/lamgc/oracle/sentry/oci/compute/ssh/SshAuthInfoSerializerTest.java +++ b/src/test/java/net/lamgc/oracle/sentry/oci/compute/ssh/SshAuthInfoSerializerTest.java @@ -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() {