changeset 6788:d53abe403e7f

RT-35197: Use Lambda in FX runtime and samples [buildSrc] Summary: This component was lambdified (unlambdified file names recorded in the JIRA)
author snorthov
date Wed, 16 Apr 2014 18:58:03 -0400
parents c895ad603b73
children 9542ed2da258
files buildSrc/src/main/java/com/sun/scenario/effect/compiler/backend/sw/sse/SSEBackend.java
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/buildSrc/src/main/java/com/sun/scenario/effect/compiler/backend/sw/sse/SSEBackend.java	Thu Apr 17 00:33:41 2014 +0300
+++ b/buildSrc/src/main/java/com/sun/scenario/effect/compiler/backend/sw/sse/SSEBackend.java	Wed Apr 16 18:58:03 2014 -0400
@@ -82,11 +82,7 @@
     }
 
     private static SortedSet<Variable> getSortedVars(Collection<Variable> unsortedVars) {
-        Comparator<Variable> c = new Comparator<Variable>() {
-            public int compare(Variable v0, Variable v1) {
-                return v0.getName().compareTo(v1.getName());
-            }
-        };
+        Comparator<Variable> c = (v0, v1) -> v0.getName().compareTo(v1.getName());
         SortedSet<Variable> sortedVars = new TreeSet<Variable>(c);
         sortedVars.addAll(unsortedVars);
         return sortedVars;