!3 modify spec

Merge pull request !3 from daidai_is_here/dqw_test
This commit is contained in:
openeuler-ci-bot 2020-02-28 16:49:59 +08:00 committed by Gitee
commit 26dcafbc2f
2 changed files with 8 additions and 4 deletions

View File

@ -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
+ } + }
@ -55,5 +57,4 @@ index 3264008..e937a66 100644
} }
return result; return result;
-- --
2.7.4 2.7.4

View File

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