From 78b2d1f09c17a38da7bad42edf42c197437a8bfd2ec6b8c3e4bad3ba8f679d4a Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Tue, 29 Mar 2022 04:56:10 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/plexus-utils?expand=0&rev=17 --- hashmap.patch | 20 ++++++++++++++++++++ plexus-utils.spec | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 hashmap.patch diff --git a/hashmap.patch b/hashmap.patch new file mode 100644 index 0000000..e5d0f5d --- /dev/null +++ b/hashmap.patch @@ -0,0 +1,20 @@ +--- plexus-utils-plexus-utils-3.3.0/src/main/java/org/codehaus/plexus/util/introspection/ClassMap.java 2022-03-24 06:42:26.828858166 +0100 ++++ plexus-utils-plexus-utils-3.3.0/src/main/java/org/codehaus/plexus/util/introspection/ClassMap.java 2022-03-24 06:43:39.629312093 +0100 +@@ -18,7 +18,7 @@ + + import java.lang.reflect.Method; + import java.lang.reflect.Modifier; +-import java.util.Hashtable; ++import java.util.HashMap; + import java.util.Map; + + /** +@@ -50,7 +50,7 @@ + /** + * Cache of Methods, or CACHE_MISS, keyed by method name and actual arguments used to find it. + */ +- private Map methodCache = new Hashtable(); ++ private Map methodCache = new HashMap(); + + private final MethodMap methodMap = new MethodMap(); + diff --git a/plexus-utils.spec b/plexus-utils.spec index 9d74f39..01cccdd 100644 --- a/plexus-utils.spec +++ b/plexus-utils.spec @@ -26,6 +26,7 @@ URL: https://codehaus-plexus.github.io/plexus-utils/ Source0: https://github.com/codehaus-plexus/%{name}/archive/%{name}-%{version}.tar.gz Source1: %{name}-build.xml Source2: http://apache.org/licenses/LICENSE-2.0.txt +Patch0: hashmap.patch BuildRequires: ant BuildRequires: fdupes BuildRequires: javapackages-local @@ -47,6 +48,7 @@ Javadoc for %{name}. %prep %setup -q -n %{name}-%{name}-%{version} +%patch0 -p1 cp %{SOURCE1} build.xml cp %{SOURCE2} .