Skip to content
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

OverridableMethodInConstructorCheck: problem with similar method names #51

Closed
romani opened this issue Sep 20, 2012 · 2 comments
Closed

OverridableMethodInConstructorCheck: problem with similar method names #51

romani opened this issue Sep 20, 2012 · 2 comments
Assignees

Comments

@romani
Copy link
Member

@romani romani commented Sep 20, 2012

Bug in public methods in c-tor.
https://github.com/romani/sevntu.checkstyle/blob/master/sevntu-checks/src/main/java/com/github/sevntu/checkstyle/checks/coding/OverridableMethodInConstructorCheck.java

public ULCWorkbenchPartSite(Object input) {
    super(window, part, descriptor);
    globalActions = new ActionsHelper(part);

    init(); // warning here is corrects
    initPart(part, input); // warning here is not correct 
}
   public init() {
   ///....
   }
   private initPart() {
   ///....
   }

one case is valid another is not:
init();
initPart(part, input); // no warning should be here

Look like you have problem with name recognition as you treat them as the same methods.

@romani
Copy link
Member Author

@romani romani commented Oct 5, 2012

Issue is assigned to Ilja Dubinin (https://github.com/sabaka).

@ghost ghost assigned sabaka Oct 7, 2012
sabaka pushed a commit to sabaka/sevntu.checkstyle that referenced this issue Feb 22, 2013
sabaka pushed a commit to sabaka/sevntu.checkstyle that referenced this issue Mar 6, 2013
sabaka pushed a commit to sabaka/sevntu.checkstyle that referenced this issue Mar 9, 2013
@romani
Copy link
Member Author

@romani romani commented Mar 11, 2013

fixed, pull request was applied.

@romani romani closed this Mar 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants