groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject groovy git commit: Trivial refactoring: make fields final
Date Sat, 13 Oct 2018 16:55:27 GMT
Repository: groovy
Updated Branches:
  refs/heads/master a8d0faeb0 -> 2cc9f0bb2


Trivial refactoring: make fields final


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/2cc9f0bb
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/2cc9f0bb
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/2cc9f0bb

Branch: refs/heads/master
Commit: 2cc9f0bb2948f0844ffe070216184d39563eeb8a
Parents: a8d0fae
Author: Daniel Sun <sunlan@apache.org>
Authored: Sun Oct 14 00:55:19 2018 +0800
Committer: Daniel Sun <sunlan@apache.org>
Committed: Sun Oct 14 00:55:19 2018 +0800

----------------------------------------------------------------------
 .../src/main/groovy/groovy/ui/text/SmartDocumentFilter.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/2cc9f0bb/subprojects/groovy-console/src/main/groovy/groovy/ui/text/SmartDocumentFilter.java
----------------------------------------------------------------------
diff --git a/subprojects/groovy-console/src/main/groovy/groovy/ui/text/SmartDocumentFilter.java
b/subprojects/groovy-console/src/main/groovy/groovy/ui/text/SmartDocumentFilter.java
index 2a64ea8..d666d5f 100644
--- a/subprojects/groovy-console/src/main/groovy/groovy/ui/text/SmartDocumentFilter.java
+++ b/subprojects/groovy-console/src/main/groovy/groovy/ui/text/SmartDocumentFilter.java
@@ -111,9 +111,9 @@ import static org.apache.groovy.parser.antlr4.GroovyLexer.WHILE;
  */
 public class SmartDocumentFilter extends DocumentFilter {
     private static final String MONOSPACED = "Monospaced";
-    private DefaultStyledDocument styledDocument;
-    private StyleContext styleContext;
-    private Style defaultStyle;
+    private final DefaultStyledDocument styledDocument;
+    private final StyleContext styleContext;
+    private final Style defaultStyle;
 
     public SmartDocumentFilter(DefaultStyledDocument styledDocument) {
         this.styledDocument = styledDocument;


Mime
View raw message