Skip to content

Commit

Permalink
make HashMap type-constraint work on JDK 7
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Feb 13, 2018
1 parent a061f1e commit 8e105df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Java/sources/org/perl/inline/java/InlineJavaPerlNatives.java
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion Java/sources/org/perl/inline/java/InlineJavaProtocol.java
Expand Up @@ -18,7 +18,7 @@ class InlineJavaProtocol {

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) {
Expand Down

0 comments on commit 8e105df

Please sign in to comment.