groovy git commit: GROOVY-8718: add missing import

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

groovy git commit: GROOVY-8718: add missing import

paulk
Repository: groovy
Updated Branches:
  refs/heads/master e58388997 -> 234724e25


GROOVY-8718: add missing import


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

Branch: refs/heads/master
Commit: 234724e250afa1311e1bddafd1f7f91ada4927fe
Parents: e583889
Author: Paul King <[hidden email]>
Authored: Thu Aug 9 21:52:30 2018 +1000
Committer: Paul King <[hidden email]>
Committed: Thu Aug 9 21:56:47 2018 +1000

----------------------------------------------------------------------
 .../src/main/groovy/groovy/ui/view/MacOSXMenuBar.groovy             | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/234724e2/subprojects/groovy-console/src/main/groovy/groovy/ui/view/MacOSXMenuBar.groovy
----------------------------------------------------------------------
diff --git a/subprojects/groovy-console/src/main/groovy/groovy/ui/view/MacOSXMenuBar.groovy b/subprojects/groovy-console/src/main/groovy/groovy/ui/view/MacOSXMenuBar.groovy
index f77973c..8b25190 100644
--- a/subprojects/groovy-console/src/main/groovy/groovy/ui/view/MacOSXMenuBar.groovy
+++ b/subprojects/groovy-console/src/main/groovy/groovy/ui/view/MacOSXMenuBar.groovy
@@ -27,6 +27,7 @@ def jdk9plus = VMPluginFactory.getPlugin().getVersion() > 8
 if (!handler) {
     try {
         handler = build(jdk9plus ? """
+import java.awt.Desktop
 def handler = Desktop.getDesktop()
 handler.setAboutHandler(controller.&showAbout)
 handler.setQuitHandler(controller.&exit)