PMD violations: UncommentedEmptyMethod Fixed #995

This commit is contained in:
Bhavik Patel 2015-06-19 14:16:06 +05:30
parent 196522bba7
commit 49928eafc9
12 changed files with 26 additions and 6 deletions

View File

@ -140,8 +140,6 @@
<exclude name="MissingBreakInSwitch"/>
<!-- we need compare by ref as Tree structure is immutable, we can easily rely on refs -->
<exclude name="CompareObjectsWithEquals"/>
<!-- till #995 -->
<exclude name="UncommentedEmptyMethod"/>
<!-- till #996 -->
<exclude name="PreserveStackTrace"/>
<!-- we will use our own declaration order logic -->

View File

@ -140,11 +140,13 @@ public class DefaultLogger
/** {@inheritDoc} */
@Override
public void fileFinished(AuditEvent evt) {
// No need to implement this method in this class
}
/** {@inheritDoc} */
@Override
public void fileStarted(AuditEvent evt) {
// No need to implement this method in this class
}
/** {@inheritDoc} */

View File

@ -54,16 +54,19 @@ public abstract class AbstractFileSetCheck
/** {@inheritDoc} */
@Override
public void init() {
// No code by default, should be overridden only by demand at subclasses
}
/** {@inheritDoc} */
@Override
public void destroy() {
// No code by default, should be overridden only by demand at subclasses
}
/** {@inheritDoc} */
@Override
public void beginProcessing(String charset) {
// No code by default, should be overridden only by demand at subclasses
}
/** {@inheritDoc} */
@ -81,6 +84,7 @@ public abstract class AbstractFileSetCheck
/** {@inheritDoc} */
@Override
public void finishProcessing() {
// No code by default, should be overridden only by demand at subclasses
}
/** {@inheritDoc} */

View File

@ -226,6 +226,7 @@ public class AutomaticBean
* @throws CheckstyleException if there is a configuration error.
*/
protected void finishLocalSetup() throws CheckstyleException {
// No code by default, should be overridden only by demand at subclasses
}
/**
@ -239,6 +240,7 @@ public class AutomaticBean
*/
protected void setupChild(Configuration childConf)
throws CheckstyleException {
// No code by default, should be overridden only by demand at subclasses
}
/**

View File

@ -120,12 +120,14 @@ public abstract class Check extends AbstractViolationReporter {
* everything required to perform it job.
*/
public void init() {
// No code by default, should be overridden only by demand at subclasses
}
/**
* Destroy the check. It is being retired from service.
*/
public void destroy() {
// No code by default, should be overridden only by demand at subclasses
}
/**
@ -134,6 +136,7 @@ public abstract class Check extends AbstractViolationReporter {
* @param rootAST the root of the tree
*/
public void beginTree(DetailAST rootAST) {
// No code by default, should be overridden only by demand at subclasses
}
/**
@ -142,6 +145,7 @@ public abstract class Check extends AbstractViolationReporter {
* @param rootAST the root of the tree
*/
public void finishTree(DetailAST rootAST) {
// No code by default, should be overridden only by demand at subclasses
}
/**
@ -149,6 +153,7 @@ public abstract class Check extends AbstractViolationReporter {
* @param ast the token to process
*/
public void visitToken(DetailAST ast) {
// No code by default, should be overridden only by demand at subclasses
}
/**
@ -156,6 +161,7 @@ public abstract class Check extends AbstractViolationReporter {
* @param ast the token leaving
*/
public void leaveToken(DetailAST ast) {
// No code by default, should be overridden only by demand at subclasses
}
/**

View File

@ -68,16 +68,19 @@ public final class SeverityLevelCounter implements AuditListener {
/** {@inheritDoc} */
@Override
public void fileStarted(AuditEvent evt) {
// No code by default, should be overridden only by demand at subclasses
}
/** {@inheritDoc} */
@Override
public void auditFinished(AuditEvent evt) {
// No code by default, should be overridden only by demand at subclasses
}
/** {@inheritDoc} */
@Override
public void fileFinished(AuditEvent evt) {
// No code by default, should be overridden only by demand at subclasses
}
/**

View File

@ -72,10 +72,6 @@ public class IllegalTokenTextCheck
super("$^"); // the empty language
}
@Override
public void beginTree(DetailAST rootAST) {
}
@Override
public int[] getDefaultTokens() {
return new int[0];

View File

@ -220,6 +220,7 @@ public abstract class AbstractHeaderCheck extends AbstractFileSetCheck {
* This implementation does nothing.
*/
protected void postprocessHeaderLines() {
// No code by default
}
@Override

View File

@ -96,6 +96,7 @@ public abstract class AbstractJavadocCheck extends Check {
* the root of the tree
*/
public void beginJavadocTree(DetailNode rootAst) {
// No code by default, should be overridden only by demand at subclasses
}
/**
@ -104,6 +105,7 @@ public abstract class AbstractJavadocCheck extends Check {
* the root of the tree
*/
public void finishJavadocTree(DetailNode rootAst) {
// No code by default, should be overridden only by demand at subclasses
}
/**
@ -112,6 +114,7 @@ public abstract class AbstractJavadocCheck extends Check {
* the token to process
*/
public void visitJavadocToken(DetailNode ast) {
// No code by default, should be overridden only by demand at subclasses
}
/**
@ -120,6 +123,7 @@ public abstract class AbstractJavadocCheck extends Check {
* the token leaving
*/
public void leaveJavadocToken(DetailNode ast) {
// No code by default, should be overridden only by demand at subclasses
}
/**
@ -170,6 +174,7 @@ public abstract class AbstractJavadocCheck extends Check {
@Override
public final void leaveToken(DetailAST ast) {
// No code by default, should be overridden only by demand at subclasses
}
@Override

View File

@ -106,6 +106,7 @@ public class AbstractCellEditor implements CellEditor {
/** @see CellEditor */
@Override
public void cancelCellEditing() {
// No code, tree is read-only
}
/** @see CellEditor */

View File

@ -314,6 +314,7 @@ class FileDrop {
@Override
public void dragOver(DropTargetDragEvent dtde) {
// No code, tree is read-only
}
public FileDropTargetListener(Component component, Border dragBorder, Listener listener) {

View File

@ -107,6 +107,7 @@ public class ParseTreeModel extends AbstractTreeTableModel {
@Override
public void setValueAt(Object aValue, Object node, int column) {
// No code, tree is read-only
}
@Override