8197482: Make Jemmy ComponentChooser lambda friendly
authorakolarkunnu
Fri, 16 Feb 2018 18:17:34 +0530
changeset 49088 1fc095fa0cd7
parent 49087 68b37374319c
child 49089 149647adb633
8197482: Make Jemmy ComponentChooser lambda friendly Reviewed-by: serb
test/jdk/sanity/client/lib/jemmy/src/org/netbeans/jemmy/ComponentChooser.java
--- a/test/jdk/sanity/client/lib/jemmy/src/org/netbeans/jemmy/ComponentChooser.java	Fri Feb 16 18:06:23 2018 +0530
+++ b/test/jdk/sanity/client/lib/jemmy/src/org/netbeans/jemmy/ComponentChooser.java	Fri Feb 16 18:17:34 2018 +0530
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -50,5 +50,7 @@
      *
      * @return a String representing the description value
      */
-    public String getDescription();
+    public default String getDescription() {
+        return toString();
+    }
 }