Permalink
Browse files

make HashMap type-constraint work on JDK 7

  • Loading branch information...
mohawk2 committed Feb 13, 2018
1 parent a061f1e commit 8e105dfb6ceffac5abb3b8b2814c406203f80f01
@@ -7,8 +7,8 @@
public class InlineJavaPerlNatives extends InlineJavaPerlCaller {
static private boolean inited = false ;
- static private Map<Class, Class> registered_classes = Collections.synchronizedMap(new HashMap<>()) ;
- static private Map<String, String> registered_methods = Collections.synchronizedMap(new HashMap<>()) ;
+ static private Map<Class, Class> registered_classes = Collections.synchronizedMap(new HashMap<Class, Class>()) ;
+ static private Map<String, String> registered_methods = Collections.synchronizedMap(new HashMap<String, String>()) ;
protected InlineJavaPerlNatives() throws InlineJavaException {
@@ -18,7 +18,7 @@
private final String encoding = "UTF-8" ;
- static private Map<String, Member> member_cache = Collections.synchronizedMap(new HashMap<>()) ;
+ static private Map<String, Member> member_cache = Collections.synchronizedMap(new HashMap<String, Member>()) ;
static private final String report_version = "V2" ;
InlineJavaProtocol(InlineJavaServer _ijs, String _cmd) {

0 comments on commit 8e105df

Please sign in to comment.