commit
26dcafbc2f
@ -34,7 +34,9 @@ index 3264008..e937a66 100644
|
|||||||
+ } catch(NoSuchFieldException ex) {
|
+ } catch(NoSuchFieldException ex) {
|
||||||
+ Class<?> clazz = object.getClass();
|
+ Class<?> clazz = object.getClass();
|
||||||
+ Field found = null;
|
+ 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) {
|
+ } catch (NoSuchFieldException nfex) {
|
||||||
+ // ignore
|
+ // ignore
|
||||||
+ }
|
+ }
|
||||||
@ -56,4 +58,3 @@ index 3264008..e937a66 100644
|
|||||||
return result;
|
return result;
|
||||||
--
|
--
|
||||||
2.7.4
|
2.7.4
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
Name: beust-jcommander
|
Name: beust-jcommander
|
||||||
Version: 1.71
|
Version: 1.71
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: Java framework for parsing command line parameters
|
Summary: Java framework for parsing command line parameters
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: http://jcommander.org/
|
URL: http://jcommander.org/
|
||||||
@ -44,5 +44,8 @@ sed -i 's/@VERSION@/%{version}/g' pom.xml
|
|||||||
%files help -f .mfiles-javadoc
|
%files help -f .mfiles-javadoc
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Feb 12 2020 Shuaishuai Song <songshuaishuai2@huawei.com> - 1.71-6
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user