modify patch
This commit is contained in:
parent
41e3be9f94
commit
8ce6d56f1a
@ -34,7 +34,9 @@ index 3264008..e937a66 100644
|
||||
+ } catch(NoSuchFieldException ex) {
|
||||
+ Class<?> clazz = object.getClass();
|
||||
+ Field found = null;
|
||||
+ while (clazz != null && method.getDeclaringClass().isAssignableFrom(clazz)) { + try { + found = clazz.getDeclaredField(fieldName);
|
||||
+ while (clazz != null && method.getDeclaringClass().isAssignableFrom(clazz)) {
|
||||
+ try {
|
||||
+ found = clazz.getDeclaredField(fieldName);
|
||||
+ } catch (NoSuchFieldException nfex) {
|
||||
+ // ignore
|
||||
+ }
|
||||
@ -55,5 +57,4 @@ index 3264008..e937a66 100644
|
||||
}
|
||||
return result;
|
||||
--
|
||||
2.7.4
|
||||
|
||||
2.7.4
|
||||
@ -1,6 +1,6 @@
|
||||
Name: beust-jcommander
|
||||
Version: 1.71
|
||||
Release: 6
|
||||
Release: 7
|
||||
Summary: Java framework for parsing command line parameters
|
||||
License: ASL 2.0
|
||||
URL: http://jcommander.org/
|
||||
@ -44,5 +44,8 @@ sed -i 's/@VERSION@/%{version}/g' pom.xml
|
||||
%files help -f .mfiles-javadoc
|
||||
|
||||
%changelog
|
||||
* Fri Feb 28 2020 daiqianwen <daiqianwen@huawei.com> - 1.71-7
|
||||
- Modify patch
|
||||
|
||||
* Wed Feb 12 2020 Shuaishuai Song <songshuaishuai2@huawei.com> - 1.71-6
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user