groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy] branch master updated: avoid accessing all properties to see if frame has title set
Date Thu, 18 Apr 2019 23:43:54 GMT
This is an automated email from the ASF dual-hosted git repository.

paulk 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 622d4d0  avoid accessing all properties to see if frame has title set
622d4d0 is described below

commit 622d4d0f75ae76f685045c14d5b03b801baace22
Author: Paul King <paulk@asert.com.au>
AuthorDate: Fri Apr 19 09:43:42 2019 +1000

    avoid accessing all properties to see if frame has title set
---
 subprojects/groovy-console/src/main/groovy/groovy/ui/Console.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/subprojects/groovy-console/src/main/groovy/groovy/ui/Console.groovy b/subprojects/groovy-console/src/main/groovy/groovy/ui/Console.groovy
index d5531ba..a426bac 100644
--- a/subprojects/groovy-console/src/main/groovy/groovy/ui/Console.groovy
+++ b/subprojects/groovy-console/src/main/groovy/groovy/ui/Console.groovy
@@ -1548,7 +1548,7 @@ class Console implements CaretListener, HyperlinkListener, ComponentListener,
Fo
     }
 
     void updateTitle() {
-        if (frame.properties.containsKey('title')) {
+        if (frame.title) {
             String title = 'GroovyConsole'
             if (indy) {
                 title += ' (Indy)'


Mime
View raw message