[
https://issues.apache.org/jira/browse/IGNITE-12841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17081578#comment-17081578
]
Maxim Muzafarov commented on IGNITE-12841:
------------------------------------------
[~oleg-a-ostanin], [~nizhikov]
Intellij Checkstyle Plugin starts to fail on configuration initialization with
the following error.
Can you take a look, please?
https://plugins.jetbrains.com/plugin/1065-checkstyle-idea
{code}
com.puppycrawl.tools.checkstyle.api.CheckstyleException: cannot initialize
module TreeWalker - cannot initialize module
org.apache.ignite.tools.checkstyle.OverrideAnnotationOnTheSameLineCheck -
Unable to instantiate
'org.apache.ignite.tools.checkstyle.OverrideAnnotationOnTheSameLineCheck'
class, it is also not possible to instantiate it as null. Please recheck that
class name is specified as canonical name or read how to configure short name
usage https://checkstyle.org/config.html#Packages. Please also recheck that
provided ClassLoader to Checker is configured correctly.
at com.puppycrawl.tools.checkstyle.Checker.setupChild(Checker.java:473)
at
com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:198)
at
org.infernus.idea.checkstyle.service.cmd.OpCreateChecker.execute(OpCreateChecker.java:61)
at
org.infernus.idea.checkstyle.service.cmd.OpCreateChecker.execute(OpCreateChecker.java:26)
at
org.infernus.idea.checkstyle.service.CheckstyleActionsImpl.executeCommand(CheckstyleActionsImpl.java:130)
at
org.infernus.idea.checkstyle.service.CheckstyleActionsImpl.createChecker(CheckstyleActionsImpl.java:60)
at
org.infernus.idea.checkstyle.service.CheckstyleActionsImpl.createChecker(CheckstyleActionsImpl.java:51)
at
org.infernus.idea.checkstyle.checker.CheckerFactoryWorker.run(CheckerFactoryWorker.java:46)
Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: cannot
initialize module
org.apache.ignite.tools.checkstyle.OverrideAnnotationOnTheSameLineCheck -
Unable to instantiate
'org.apache.ignite.tools.checkstyle.OverrideAnnotationOnTheSameLineCheck'
class, it is also not possible to instantiate it as null. Please recheck that
class name is specified as canonical name or read how to configure short name
usage https://checkstyle.org/config.html#Packages. Please also recheck that
provided ClassLoader to Checker is configured correctly.
at
com.puppycrawl.tools.checkstyle.TreeWalker.setupChild(TreeWalker.java:123)
at
com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:198)
at com.puppycrawl.tools.checkstyle.Checker.setupChild(Checker.java:468)
... 7 more
Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: Unable to
instantiate
'org.apache.ignite.tools.checkstyle.OverrideAnnotationOnTheSameLineCheck'
class, it is also not possible to instantiate it as null. Please recheck that
class name is specified as canonical name or read how to configure short name
usage https://checkstyle.org/config.html#Packages. Please also recheck that
provided ClassLoader to Checker is configured correctly.
at
com.puppycrawl.tools.checkstyle.PackageObjectFactory.createModule(PackageObjectFactory.java:211)
at
com.puppycrawl.tools.checkstyle.TreeWalker.setupChild(TreeWalker.java:114)
... 9 more
{code}
> @Override must be on the same line as a method
> ----------------------------------------------
>
> Key: IGNITE-12841
> URL: https://issues.apache.org/jira/browse/IGNITE-12841
> Project: Ignite
> Issue Type: Bug
> Reporter: Nikolay Izhikov
> Assignee: Oleg Ostanin
> Priority: Trivial
> Labels: newbie
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> Right now, there are many places where codestyle broken.
> {noformat}
> /** {@inheritDoc} */
> @Override
> public boolean registerClassName(byte platformId, int typeId, String
> clsName) throws IgniteCheckedException {
> return registerClassName(platformId, typeId, clsName, false);
> }
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)