groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [groovy] branch master updated: Trivial refactoring: make `fillInStackTrace` method `final`
Date Fri, 11 Oct 2019 14:00:36 GMT
This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new f0e9af6  Trivial refactoring: make `fillInStackTrace` method `final`
f0e9af6 is described below

commit f0e9af6b1e0495db9ebb3fd319d2c3c1812b5dc1
Author: Daniel Sun <sunlan@apache.org>
AuthorDate: Fri Oct 11 22:00:20 2019 +0800

    Trivial refactoring: make `fillInStackTrace` method `final`
---
 .../main/java/org/apache/groovy/parser/antlr4/GroovyLangParser.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/GroovyLangParser.java
b/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/GroovyLangParser.java
index 8e2c41a..a2aff6c 100644
--- a/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/GroovyLangParser.java
+++ b/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/GroovyLangParser.java
@@ -48,12 +48,12 @@ public class GroovyLangParser extends GroovyParser {
     }
 
     private static class LightWeightFailedPredicateException extends FailedPredicateException
{
-        public LightWeightFailedPredicateException(Parser recognizer, String predicate, String
message) {
+        LightWeightFailedPredicateException(Parser recognizer, String predicate, String message)
{
             super(recognizer, predicate, message);
         }
 
         @Override
-        public Throwable fillInStackTrace() {
+        public final Throwable fillInStackTrace() {
             // `FailedPredicateException` is used to change the control flow,
             // so its stack trace can be eliminated for better performance
             return this;


Mime
View raw message