New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CustomOrderDeclarationCheck: problem with inner classes inside methods #58

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

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.

@ghost ghost assigned sabaka Jun 3, 2013

@ghost ghost assigned baratali Sep 7, 2013

baratali added a commit to baratali/sevntu.checkstyle that referenced this issue Sep 21, 2013

baratali added a commit to baratali/sevntu.checkstyle that referenced this issue Sep 22, 2013

@romani romani closed this in #136 Sep 23, 2013

romani added a commit that referenced this issue Sep 23, 2013

Merge pull request #136 from baratali/iss58
Fixes #58. Update for CustomDeclarationOrderCheck.

denant0 added a commit to denant0/sevntu.checkstyle that referenced this issue Sep 28, 2013

Merge pull request #136 from baratali/iss58
Fixes #58. Update for CustomDeclarationOrderCheck.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment