From 8cfcf7858b9439df2e3e758da0c8018a22f7a7ce Mon Sep 17 00:00:00 2001 From: nik Date: Fri, 7 Feb 2014 11:35:08 +0400 Subject: [PATCH] 'show serialized xml' action: fixed instantiation of bean class --- plugins/devkit/src/actions/ShowSerializedXmlAction.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/devkit/src/actions/ShowSerializedXmlAction.java b/plugins/devkit/src/actions/ShowSerializedXmlAction.java index 9c53cacdf104..888042424295 100644 --- a/plugins/devkit/src/actions/ShowSerializedXmlAction.java +++ b/plugins/devkit/src/actions/ShowSerializedXmlAction.java @@ -19,8 +19,6 @@ import com.intellij.CommonBundle; import com.intellij.compiler.impl.FileSetCompileScope; import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.actionSystem.CommonDataKeys; -import com.intellij.openapi.actionSystem.LangDataKeys; -import com.intellij.openapi.actionSystem.PlatformDataKeys; import com.intellij.openapi.compiler.CompileContext; import com.intellij.openapi.compiler.CompileStatusNotification; import com.intellij.openapi.compiler.CompilerManager; @@ -184,7 +182,7 @@ public class ShowSerializedXmlAction extends DumbAwareAction { } public Object createObject(Class aClass, FList processedTypes) throws Exception { - final Object o = aClass.newInstance(); + final Object o = aClass.getDeclaredConstructor().newInstance(); for (Accessor accessor : XmlSerializerUtil.getAccessors(aClass)) { final Type type = accessor.getGenericType(); Object value = createValue(type, processedTypes);