Remove dead code from SlistHandler in Indentation check. #1270

This commit is contained in:
Michal Kordas 2015-07-19 16:15:47 +02:00 committed by Roman Ivanov
parent cb4ca4e535
commit 547580dea8
2 changed files with 0 additions and 10 deletions

View File

@ -1165,7 +1165,6 @@
<regex><pattern>.*.checks.indentation.NewHandler</pattern><branchRate>83</branchRate><lineRate>77</lineRate></regex>
<regex><pattern>.*.checks.indentation.ObjectBlockHandler</pattern><branchRate>75</branchRate><lineRate>100</lineRate></regex>
<regex><pattern>.*.checks.indentation.PackageDefHandler</pattern><branchRate>50</branchRate><lineRate>85</lineRate></regex>
<regex><pattern>.*.checks.indentation.SlistHandler</pattern><branchRate>100</branchRate><lineRate>94</lineRate></regex>
<regex><pattern>.*.checks.indentation.SynchronizedHandler</pattern><branchRate>100</branchRate><lineRate>100</lineRate></regex>
<regex><pattern>.*.checks.javadoc.AbstractJavadocCheck</pattern><branchRate>90</branchRate><lineRate>93</lineRate></regex>

View File

@ -62,15 +62,6 @@ public class SlistHandler extends BlockParentHandler {
return super.suggestedChildLevel(child);
}
@Override
protected DetailAST getNonlistChild() {
// blocks always have either block children or they are transparent
// and aren't checking children at all. In the later case, the
// superclass will want to check single children, so when it
// does tell it we have none.
return null;
}
@Override
protected DetailAST getListChild() {
return getMainAst();