CustomOrderDeclarationCheck: problem with inner classes inside methods #58

Closed
romani opened this Issue Oct 17, 2012 · 0 comments

Projects

None yet

3 participants

@romani
Member
romani commented Oct 17, 2012

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 Jun 3, 2013
@baratali baratali was assigned Sep 7, 2013
@baratali baratali added a commit to baratali/sevntu.checkstyle that referenced this issue Sep 21, 2013
@baratali baratali Fixes #58. Update for CustomDeclarationOrderCheck. f7c6bf6
@baratali baratali added a commit to baratali/sevntu.checkstyle that referenced this issue Sep 22, 2013
@baratali baratali Fixes #58. Update for CustomDeclarationOrderCheck. 217934e
@romani romani closed this in #136 Sep 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment