Fridrich Strba 2022-03-29 04:56:10 +00:00 committed by Git OBS Bridge
parent e3af4b0766
commit 78b2d1f09c
2 changed files with 22 additions and 0 deletions

20
hashmap.patch Normal file
View File

@ -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<String, Object> methodCache = new Hashtable<String, Object>();
+ private Map<String, Object> methodCache = new HashMap<String, Object>();
private final MethodMap methodMap = new MethodMap();

View File

@ -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} .