Browse Source

Revert change for backwards compatibility

master
Gintas Grigelionis 7 years ago
parent
commit
c9e0c5011d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/optional/ejb/DescriptorHandler.java

+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/optional/ejb/DescriptorHandler.java View File

@@ -98,7 +98,7 @@ public class DescriptorHandler extends HandlerBase {
* put into the jar file, mapped to File objects Accessed by the SAX
* parser call-back method characters().
*/
protected Map<String, File> ejbFiles = null;
protected Hashtable<String, File> ejbFiles = null;

/**
* Instance variable that stores the value found in the &lt;ejb-name&gt; element
@@ -235,7 +235,7 @@ public class DescriptorHandler extends HandlerBase {
* @return the map of files
*/
public Hashtable<String, File> getFiles() {
return new Hashtable<>(ejbFiles == null ? Collections.emptyMap() : ejbFiles);
return ejbFiles == null ? new Hashtable<>(Collections.emptyMap()) : ejbFiles;
}

/**


Loading…
Cancel
Save