From 74e1c150710493af0aab480c6b398f7489b438bb Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Tue, 5 Nov 2019 08:48:40 +0100 Subject: [PATCH] Remove unused import --- 0001-Remove-unused-import.patch | 24 ++++++++++++++++++++++++ cglib.spec | 6 +++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 0001-Remove-unused-import.patch diff --git a/0001-Remove-unused-import.patch b/0001-Remove-unused-import.patch new file mode 100644 index 0000000..9dd3e83 --- /dev/null +++ b/0001-Remove-unused-import.patch @@ -0,0 +1,24 @@ +From 912eaec202f33f8a0a9832bb3551674b6788e7f0 Mon Sep 17 00:00:00 2001 +From: Mikolaj Izdebski +Date: Tue, 5 Nov 2019 08:47:50 +0100 +Subject: [PATCH] Remove unused import + +--- + cglib/src/main/java/net/sf/cglib/reflect/MethodDelegate.java | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/cglib/src/main/java/net/sf/cglib/reflect/MethodDelegate.java b/cglib/src/main/java/net/sf/cglib/reflect/MethodDelegate.java +index e7de82b..1f1f744 100644 +--- a/cglib/src/main/java/net/sf/cglib/reflect/MethodDelegate.java ++++ b/cglib/src/main/java/net/sf/cglib/reflect/MethodDelegate.java +@@ -17,7 +17,6 @@ package net.sf.cglib.reflect; + + import java.lang.reflect.*; + import java.security.ProtectionDomain; +-import net.sf.cglib.*; + import net.sf.cglib.core.*; + import org.objectweb.asm.ClassVisitor; + import org.objectweb.asm.Type; +-- +2.21.0 + diff --git a/cglib.spec b/cglib.spec index 8486334..923f4cf 100644 --- a/cglib.spec +++ b/cglib.spec @@ -8,9 +8,12 @@ Summary: Code Generation Library for Java # BSD-licensed. Everything else is ASL 2.0. License: ASL 2.0 and BSD URL: https://github.com/cglib/cglib -Source0: https://github.com/cglib/cglib/archive/%{tarball_name}.tar.gz BuildArch: noarch +Source0: https://github.com/cglib/cglib/archive/%{tarball_name}.tar.gz + +Patch0: 0001-Remove-unused-import.patch + BuildRequires: maven-local BuildRequires: maven-plugin-bundle BuildRequires: javapackages-local @@ -32,6 +35,7 @@ Documentation for the cglib code generation library. %prep %setup -q -n %{name}-%{tarball_name} +%patch0 -p1 %pom_disable_module cglib-nodep %pom_disable_module cglib-integration-test