You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2019/04/19 01:43:58 UTC

[groovy] 17/17: avoid accessing all properties to see if frame has title set

This is an automated email from the ASF dual-hosted git repository.

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

commit 31515477bb2bf991bf1e0f2f0d05e09c2714c6ad
Author: Paul King <pa...@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 3d0e976..0a63822 100644
--- a/subprojects/groovy-console/src/main/groovy/groovy/ui/Console.groovy
+++ b/subprojects/groovy-console/src/main/groovy/groovy/ui/Console.groovy
@@ -1516,7 +1516,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)'