VictorZeng commented on a change in pull request #35:
URL: https://github.com/apache/skywalking-java/pull/35#discussion_r715402685
##########
File path:
apm-sniffer/optional-plugins/fastjson-1.2.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/fastjson/define/FastjsonInstrumentation.java
##########
@@ -41,158 +46,45 @@
public static final String ENHANCE_CLASS = "com.alibaba.fastjson.JSON";
- public enum Enhance {
-
- PARSE_ARRAY("parseArray",
"org.apache.skywalking.apm.plugin.fastjson.ParseArrayInterceptor"),
- PARSE("parse",
"org.apache.skywalking.apm.plugin.fastjson.ParseInterceptor"),
- PARSE_OBJECT("parseObject",
"org.apache.skywalking.apm.plugin.fastjson.ParseObjectInterceptor"),
- TO_JAVA_OBJECT("toJavaObject",
"org.apache.skywalking.apm.plugin.fastjson.ToJavaObjectInterceptor"),
- TO_JSON_BYTES("toJSONBytes",
"org.apache.skywalking.apm.plugin.fastjson.ToJsonBytesInterceptor"),
- TO_JSON("toJSON",
"org.apache.skywalking.apm.plugin.fastjson.ToJsonInterceptor"),
- TO_JSON_STRING("toJSONString",
"org.apache.skywalking.apm.plugin.fastjson.ToJsonStringInterceptor"),
- WRITE_JSON_STRING("writeJSONString",
"org.apache.skywalking.apm.plugin.fastjson.WriteJsonStringInterceptor");
-
- private String enhanceMethod, interceptorClass;
-
- Enhance(String enhanceMethod, String interceptorClass) {
- this.enhanceMethod = enhanceMethod;
- this.interceptorClass = interceptorClass;
+ public static final Map<String, String> ENHANCE_METHODS = new
HashMap<String, String>() {
Review comment:
Thank u for review.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]