We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public class JSONObject extends LinkedHashMap implements InvocationHandler
如题,fastjson2相较于v1版本移除了LinkedHashMap泛型,在原项目升级v2版本后出现多处以下告警,经翻阅issues了解到是为了修复 #110,目前暂时用@SuppressWarnings("unchecked")抑制了告警,想请问下后续会考虑将泛型加回来吗?关联问题 #165。
fastjson2
v1
LinkedHashMap
v2
issues
@SuppressWarnings("unchecked")
Unchecked assignment: 'com.alibaba.fastjson2.JSONObject' to 'java.util.Map<java.lang.String,java.lang.Object>
The text was updated successfully, but these errors were encountered:
你用的是什么版本?
Sorry, something went wrong.
2.0.3
public void test1(JSONObject param1){ } public void test1(Map<String,String> param1){ }
在2.0.3的版本这样的写法是有问题的.
为什么要去掉父类的泛型?
https://github.com/alibaba/fastjson2/releases/tag/2.0.4 问题已经修复,请用新版本
No branches or pull requests
请描述您的问题
如题,
fastjson2
相较于v1
版本移除了LinkedHashMap
泛型,在原项目升级v2
版本后出现多处以下告警,经翻阅issues
了解到是为了修复 #110,目前暂时用@SuppressWarnings("unchecked")
抑制了告警,想请问下后续会考虑将泛型加回来吗?关联问题 #165。The text was updated successfully, but these errors were encountered: