From f14025ac008f8a2ef506b9e7cfcc820c637d28d5 Mon Sep 17 00:00:00 2001 From: Michal Kordas Date: Sat, 17 Oct 2015 23:53:13 +0200 Subject: [PATCH] Issue #957: Decrease visibility of package-private methods --- .../checkstyle/checks/indentation/HandlerFactory.java | 2 +- .../checkstyle/checks/javadoc/JavadocMethodCheck.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/HandlerFactory.java b/src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/HandlerFactory.java index df140be7c..b0d960c34 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/HandlerFactory.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/HandlerFactory.java @@ -162,7 +162,7 @@ public class HandlerFactory { * * @return new instance. */ - AbstractExpressionHandler createMethodCallHandler(IndentationCheck indentCheck, + private AbstractExpressionHandler createMethodCallHandler(IndentationCheck indentCheck, DetailAST ast, AbstractExpressionHandler parent) { AbstractExpressionHandler theParent = parent; DetailAST astNode = ast.getFirstChild(); diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.java b/src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.java index 8e0bd30ad..a3fc7e20a 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.java @@ -986,7 +986,7 @@ public class JavadocMethodCheck extends AbstractTypeAwareCheck { } /** Mark that the exception has associated throws tag. */ - final void setFound() { + private void setFound() { found = true; } @@ -994,7 +994,7 @@ public class JavadocMethodCheck extends AbstractTypeAwareCheck { * Checks that the exception has throws tag associated with it. * @return whether the exception has throws tag associated with */ - final boolean isFound() { + private boolean isFound() { return found; } @@ -1002,7 +1002,7 @@ public class JavadocMethodCheck extends AbstractTypeAwareCheck { * Gets exception name. * @return exception's name */ - final Token getName() { + private Token getName() { return classInfo.getName(); } @@ -1010,7 +1010,7 @@ public class JavadocMethodCheck extends AbstractTypeAwareCheck { * Gets exception class. * @return class for this exception */ - final Class getClazz() { + private Class getClazz() { return classInfo.getClazz(); } }