make code compile on Neon
diff --git a/bundles/runtime/org.eclipse.fx.core/src/org/eclipse/fx/core/text/TextRegistry.java b/bundles/runtime/org.eclipse.fx.core/src/org/eclipse/fx/core/text/TextRegistry.java
index bcd19dc..d3dd7f2 100644
--- a/bundles/runtime/org.eclipse.fx.core/src/org/eclipse/fx/core/text/TextRegistry.java
+++ b/bundles/runtime/org.eclipse.fx.core/src/org/eclipse/fx/core/text/TextRegistry.java
@@ -83,7 +83,7 @@
 			try {
 				Optional<Supplier<String>> rv = Stream.of(getClass().getMethods())
 					.filter(m -> (key + "_supplier").equals(m.getName())) //$NON-NLS-1$
-					.findFirst().map( m -> new Supplier<String>() {
+					.findFirst().<Supplier<String>>map( m -> new Supplier<String>() {
 
 					@Override
 					public String get() {