Skip to content
This repository

CustomOrderDeclarationCheck: problem with inner classes inside methods #58

Closed
romani opened this Issue · 0 comments

3 participants

Roman Ivanov Ilja Dubinin Baratali Izmailov
Roman Ivanov
Owner

I added a check to ensure that inner classes placed lower than methods, it works wrong in this particular case:

    class A {
        public Object createB() {
            class B {

            }
            return new B();
        }

        void otherMethod() {

        }
    }

ie classes that declared inside methods should be skipped from check.

Baratali Izmailov baratali referenced this issue from a commit in baratali/sevntu.checkstyle
Baratali Izmailov baratali Fixes #58. Update for CustomDeclarationOrderCheck. f7c6bf6
Baratali Izmailov baratali referenced this issue from a commit in baratali/sevntu.checkstyle
Baratali Izmailov baratali Fixes #58. Update for CustomDeclarationOrderCheck. 217934e
Roman Ivanov romani closed this in #136
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.