Demo entry 6781515

null

   

Submitted by anonymous on Jan 04, 2019 at 10:11
Language: Diff. Code size: 1.0 kB.

diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/RightCurlyCheck.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/RightCurlyCheck.java
index d96a95690..f103ac0fb 100644
--- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/RightCurlyCheck.java
+++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/RightCurlyCheck.java
@@ -31,7 +31,6 @@ import com.puppycrawl.tools.checkstyle.api.TokenTypes;
 public class RightCurlyCheck
     extends AbstractOptionCheck
 {
-
     /**
      * Sets the right curly otion to same.
      */  
@@ -56,7 +55,7 @@ public class RightCurlyCheck
         DetailAST nextToken = null;
         if (aAST.getType() == TokenTypes.LITERAL_ELSE) {
             nextToken = aAST;
-            DetailAST thenAST = aAST.getPreviousSibling();
+            final DetailAST thenAST = aAST.getPreviousSibling();
             rcurly = thenAST.getLastChild();
         }
         else if (aAST.getType() == TokenTypes.LITERAL_CATCH) {

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).