From c9e0c5011d128121488dc8167fa40b0efd24e6a7 Mon Sep 17 00:00:00 2001 From: Gintas Grigelionis Date: Wed, 23 May 2018 06:24:13 +0200 Subject: [PATCH] Revert change for backwards compatibility --- .../tools/ant/taskdefs/optional/ejb/DescriptorHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/DescriptorHandler.java b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/DescriptorHandler.java index c9ab1a399..e68ddf05c 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/DescriptorHandler.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/DescriptorHandler.java @@ -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 ejbFiles = null; + protected Hashtable ejbFiles = null; /** * Instance variable that stores the value found in the <ejb-name> element @@ -235,7 +235,7 @@ public class DescriptorHandler extends HandlerBase { * @return the map of files */ public Hashtable getFiles() { - return new Hashtable<>(ejbFiles == null ? Collections.emptyMap() : ejbFiles); + return ejbFiles == null ? new Hashtable<>(Collections.emptyMap()) : ejbFiles; } /**