diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/blocks/EmptyBlockCheck.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/blocks/EmptyBlockCheck.java index 46fdbb2e3..06e9085be 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/blocks/EmptyBlockCheck.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/blocks/EmptyBlockCheck.java @@ -116,7 +116,7 @@ public class EmptyBlockCheck * @param aSlistAST a DetailAST value * @return whether the SLIST token contains any text. */ - private boolean hasText(final DetailAST aSlistAST) + protected boolean hasText(final DetailAST aSlistAST) { boolean retVal = false; diff --git a/src/xdocs/releasenotes.xml b/src/xdocs/releasenotes.xml index c846ea639..1a0aff655 100755 --- a/src/xdocs/releasenotes.xml +++ b/src/xdocs/releasenotes.xml @@ -60,8 +60,11 @@ . This will change once Maven has been proven.
  • - Introduced FileText to provide more - flexibitily on how the contents of a file are + Introduced + + FileText + + to provide more flexibitily on how the contents of a file are represented. This allows for Checkers that wish to operate on a single character sequence instead of a list of lines. Thanks to Martin von Gagern for patch #2783226. @@ -70,6 +73,14 @@ Updated third party dependencies to the latest versions. See Project Dependencies for details.
  • +
  • + Made the method + + EmptyBlockCheck.hasText(DetailAST) + + protected so that it is accessible to subclasses. + Requested by Steve McKay. +
  • @@ -303,7 +314,7 @@ Added the option sumTokenCounts to the DescendantToken to allow for even more powerful checks. For example, detect - statements like this == null. + statements like this == null.
  • Add new options to the JavadocMethod check to not require Javadoc if the method is tagged with the - @Override annotation. + @Override annotation.
  • New check EqualsAvoidNull for ensuring that String literals is on the left side of an - equals() comparison. Thanks to + equals() comparison. Thanks to Travis Schneeberger for providing patch #1895152.
  • @@ -443,9 +454,8 @@
  • New check NoClone for - ensuring a class does not override the clone method from the Object class. Thanks to Travis + ensuring a class does not override the clone method from + the Object class. Thanks to Travis Schneeberger for providing patch #1947417.