From commits-return-8332-archive-asf-public=cust-asf.ponee.io@groovy.apache.org Thu Apr 18 23:44:01 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id DD2EF18061A for ; Fri, 19 Apr 2019 01:44:00 +0200 (CEST) Received: (qmail 75207 invoked by uid 500); 18 Apr 2019 23:44:00 -0000 Mailing-List: contact commits-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list commits@groovy.apache.org Received: (qmail 75194 invoked by uid 99); 18 Apr 2019 23:44:00 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Apr 2019 23:44:00 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id A5C3C879F6; Thu, 18 Apr 2019 23:43:54 +0000 (UTC) Date: Thu, 18 Apr 2019 23:43:54 +0000 To: "commits@groovy.apache.org" Subject: [groovy] branch master updated: avoid accessing all properties to see if frame has title set MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <155563103455.3165.5135608260185782004@gitbox.apache.org> From: paulk@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: groovy X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: b053eff860193e8f72a498da1d02c4d49db85ab0 X-Git-Newrev: 622d4d0f75ae76f685045c14d5b03b801baace22 X-Git-Rev: 622d4d0f75ae76f685045c14d5b03b801baace22 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated 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 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)'