未验证 提交 3bc94cbb 编写于 作者: K Kdump 提交者: GitHub

fix Calling getClass() on an enum may return a subclass of the enum type (#5594)

ref: https://errorprone.info/bugpattern/GetClassOnEnum
上级 bc64c6a1
......@@ -38,7 +38,7 @@ public class AgentServiceRule extends ExternalResource {
super.after();
try {
FieldSetter.setValue(
ServiceManager.INSTANCE.getClass(), "bootedServices", new HashMap<Class, BootService>());
ServiceManager.INSTANCE.getDeclaringClass(), "bootedServices", new HashMap<Class, BootService>());
FieldSetter.setValue(
IgnoredTracerContext.ListenerManager.class, "LISTENERS", new LinkedList<TracingContextListener>());
FieldSetter.setValue(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册