Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

CustomOrderDeclarationCheck: problem with inner classes inside methods #58

Closed
romani opened this Issue · 0 comments

3 participants

@romani
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.

@sabaka sabaka was assigned
@baratali baratali was assigned
@baratali baratali referenced this issue from a commit in baratali/sevntu.checkstyle
@baratali baratali Fixes #58. Update for CustomDeclarationOrderCheck. f7c6bf6
@baratali baratali referenced this issue from a commit in baratali/sevntu.checkstyle
@baratali baratali Fixes #58. Update for CustomDeclarationOrderCheck. 217934e
@romani 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.