From f49adffd29ec9844d709da66081f5c84ed05e082 Mon Sep 17 00:00:00 2001 From: godotg Date: Mon, 15 Jul 2024 15:20:14 +0800 Subject: [PATCH] ref[protocol]: refactor field method --- .../zfoo/protocol/serializer/javascript/JsArraySerializer.java | 1 - .../serializer/javascript/JsObjectProtocolSerializer.java | 1 - .../com/zfoo/protocol/serializer/php/PhpArraySerializer.java | 2 -- .../com/zfoo/protocol/serializer/php/PhpByteSerializer.java | 1 - .../com/zfoo/protocol/serializer/php/PhpDoubleSerializer.java | 1 - .../com/zfoo/protocol/serializer/php/PhpFloatSerializer.java | 1 - .../java/com/zfoo/protocol/serializer/php/PhpIntSerializer.java | 1 - .../com/zfoo/protocol/serializer/php/PhpLongSerializer.java | 1 - .../java/com/zfoo/protocol/serializer/php/PhpMapSerializer.java | 1 - .../protocol/serializer/php/PhpObjectProtocolSerializer.java | 2 -- .../java/com/zfoo/protocol/serializer/php/PhpSetSerializer.java | 2 -- .../com/zfoo/protocol/serializer/php/PhpShortSerializer.java | 1 - .../com/zfoo/protocol/serializer/php/PhpStringSerializer.java | 1 - .../zfoo/protocol/serializer/typescript/TsIntSerializer.java | 1 - 14 files changed, 17 deletions(-) diff --git a/protocol/src/main/java/com/zfoo/protocol/serializer/javascript/JsArraySerializer.java b/protocol/src/main/java/com/zfoo/protocol/serializer/javascript/JsArraySerializer.java index 7d0487b95..4773a4868 100644 --- a/protocol/src/main/java/com/zfoo/protocol/serializer/javascript/JsArraySerializer.java +++ b/protocol/src/main/java/com/zfoo/protocol/serializer/javascript/JsArraySerializer.java @@ -15,7 +15,6 @@ import com.zfoo.protocol.generate.GenerateProtocolFile; import com.zfoo.protocol.model.Pair; -import com.zfoo.protocol.model.Triple; import com.zfoo.protocol.registration.field.ArrayField; import com.zfoo.protocol.registration.field.IFieldRegistration; import com.zfoo.protocol.serializer.CodeLanguage; diff --git a/protocol/src/main/java/com/zfoo/protocol/serializer/javascript/JsObjectProtocolSerializer.java b/protocol/src/main/java/com/zfoo/protocol/serializer/javascript/JsObjectProtocolSerializer.java index 216c4bf7b..5399068f7 100644 --- a/protocol/src/main/java/com/zfoo/protocol/serializer/javascript/JsObjectProtocolSerializer.java +++ b/protocol/src/main/java/com/zfoo/protocol/serializer/javascript/JsObjectProtocolSerializer.java @@ -15,7 +15,6 @@ import com.zfoo.protocol.generate.GenerateProtocolFile; import com.zfoo.protocol.model.Pair; -import com.zfoo.protocol.model.Triple; import com.zfoo.protocol.registration.field.IFieldRegistration; import com.zfoo.protocol.registration.field.ObjectProtocolField; import com.zfoo.protocol.serializer.enhance.EnhanceObjectProtocolSerializer; diff --git a/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpArraySerializer.java b/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpArraySerializer.java index bc54657dd..a34efca15 100644 --- a/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpArraySerializer.java +++ b/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpArraySerializer.java @@ -15,12 +15,10 @@ import com.zfoo.protocol.generate.GenerateProtocolFile; import com.zfoo.protocol.model.Pair; -import com.zfoo.protocol.model.Triple; import com.zfoo.protocol.registration.field.ArrayField; import com.zfoo.protocol.registration.field.IFieldRegistration; import com.zfoo.protocol.serializer.CodeLanguage; import com.zfoo.protocol.serializer.CutDownArraySerializer; -import com.zfoo.protocol.serializer.kotlin.CodeGenerateKotlin; import com.zfoo.protocol.util.StringUtils; import java.lang.reflect.Field; diff --git a/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpByteSerializer.java b/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpByteSerializer.java index 1863a2982..e982edaab 100644 --- a/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpByteSerializer.java +++ b/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpByteSerializer.java @@ -15,7 +15,6 @@ import com.zfoo.protocol.generate.GenerateProtocolFile; import com.zfoo.protocol.model.Pair; -import com.zfoo.protocol.model.Triple; import com.zfoo.protocol.registration.field.IFieldRegistration; import com.zfoo.protocol.util.StringUtils; diff --git a/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpDoubleSerializer.java b/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpDoubleSerializer.java index beff48a64..49ce5ee56 100644 --- a/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpDoubleSerializer.java +++ b/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpDoubleSerializer.java @@ -15,7 +15,6 @@ import com.zfoo.protocol.generate.GenerateProtocolFile; import com.zfoo.protocol.model.Pair; -import com.zfoo.protocol.model.Triple; import com.zfoo.protocol.registration.field.IFieldRegistration; import com.zfoo.protocol.util.StringUtils; diff --git a/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpFloatSerializer.java b/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpFloatSerializer.java index 60dc3fc0b..e98a2f3e1 100644 --- a/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpFloatSerializer.java +++ b/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpFloatSerializer.java @@ -15,7 +15,6 @@ import com.zfoo.protocol.generate.GenerateProtocolFile; import com.zfoo.protocol.model.Pair; -import com.zfoo.protocol.model.Triple; import com.zfoo.protocol.registration.field.IFieldRegistration; import com.zfoo.protocol.util.StringUtils; diff --git a/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpIntSerializer.java b/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpIntSerializer.java index 9bba99ee1..77c14a469 100644 --- a/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpIntSerializer.java +++ b/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpIntSerializer.java @@ -15,7 +15,6 @@ import com.zfoo.protocol.generate.GenerateProtocolFile; import com.zfoo.protocol.model.Pair; -import com.zfoo.protocol.model.Triple; import com.zfoo.protocol.registration.field.IFieldRegistration; import com.zfoo.protocol.util.StringUtils; diff --git a/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpLongSerializer.java b/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpLongSerializer.java index c97ee8fe1..a9f06097a 100644 --- a/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpLongSerializer.java +++ b/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpLongSerializer.java @@ -15,7 +15,6 @@ import com.zfoo.protocol.generate.GenerateProtocolFile; import com.zfoo.protocol.model.Pair; -import com.zfoo.protocol.model.Triple; import com.zfoo.protocol.registration.field.IFieldRegistration; import com.zfoo.protocol.util.StringUtils; diff --git a/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpMapSerializer.java b/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpMapSerializer.java index e4e832dfe..2fc9e471a 100644 --- a/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpMapSerializer.java +++ b/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpMapSerializer.java @@ -15,7 +15,6 @@ import com.zfoo.protocol.generate.GenerateProtocolFile; import com.zfoo.protocol.model.Pair; -import com.zfoo.protocol.model.Triple; import com.zfoo.protocol.registration.field.IFieldRegistration; import com.zfoo.protocol.registration.field.MapField; import com.zfoo.protocol.serializer.CodeLanguage; diff --git a/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpObjectProtocolSerializer.java b/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpObjectProtocolSerializer.java index 506794feb..119cd78c6 100644 --- a/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpObjectProtocolSerializer.java +++ b/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpObjectProtocolSerializer.java @@ -15,10 +15,8 @@ import com.zfoo.protocol.generate.GenerateProtocolFile; import com.zfoo.protocol.model.Pair; -import com.zfoo.protocol.model.Triple; import com.zfoo.protocol.registration.field.IFieldRegistration; import com.zfoo.protocol.registration.field.ObjectProtocolField; -import com.zfoo.protocol.serializer.enhance.EnhanceObjectProtocolSerializer; import com.zfoo.protocol.util.StringUtils; import java.lang.reflect.Field; diff --git a/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpSetSerializer.java b/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpSetSerializer.java index 04aaef5b1..024b5e842 100644 --- a/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpSetSerializer.java +++ b/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpSetSerializer.java @@ -15,9 +15,7 @@ import com.zfoo.protocol.generate.GenerateProtocolFile; import com.zfoo.protocol.model.Pair; -import com.zfoo.protocol.model.Triple; import com.zfoo.protocol.registration.field.IFieldRegistration; -import com.zfoo.protocol.registration.field.ListField; import com.zfoo.protocol.registration.field.SetField; import com.zfoo.protocol.serializer.CodeLanguage; import com.zfoo.protocol.serializer.CutDownSetSerializer; diff --git a/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpShortSerializer.java b/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpShortSerializer.java index 8965b3e9e..c28edf2f6 100644 --- a/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpShortSerializer.java +++ b/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpShortSerializer.java @@ -15,7 +15,6 @@ import com.zfoo.protocol.generate.GenerateProtocolFile; import com.zfoo.protocol.model.Pair; -import com.zfoo.protocol.model.Triple; import com.zfoo.protocol.registration.field.IFieldRegistration; import com.zfoo.protocol.util.StringUtils; diff --git a/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpStringSerializer.java b/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpStringSerializer.java index f9d4019b6..8470a8c1b 100644 --- a/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpStringSerializer.java +++ b/protocol/src/main/java/com/zfoo/protocol/serializer/php/PhpStringSerializer.java @@ -15,7 +15,6 @@ import com.zfoo.protocol.generate.GenerateProtocolFile; import com.zfoo.protocol.model.Pair; -import com.zfoo.protocol.model.Triple; import com.zfoo.protocol.registration.field.IFieldRegistration; import com.zfoo.protocol.util.StringUtils; diff --git a/protocol/src/main/java/com/zfoo/protocol/serializer/typescript/TsIntSerializer.java b/protocol/src/main/java/com/zfoo/protocol/serializer/typescript/TsIntSerializer.java index 965612d37..bf4c0d7cc 100644 --- a/protocol/src/main/java/com/zfoo/protocol/serializer/typescript/TsIntSerializer.java +++ b/protocol/src/main/java/com/zfoo/protocol/serializer/typescript/TsIntSerializer.java @@ -15,7 +15,6 @@ import com.zfoo.protocol.generate.GenerateProtocolFile; import com.zfoo.protocol.model.Pair; -import com.zfoo.protocol.model.Triple; import com.zfoo.protocol.registration.field.IFieldRegistration; import com.zfoo.protocol.util.StringUtils;