You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by br...@apache.org on 2018/08/26 15:25:40 UTC
[lang] Identical catch blocks can be combined
Repository: commons-lang
Updated Branches:
refs/heads/master b1deb442d -> 9fb4f47f3
Identical catch blocks can be combined
Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/9fb4f47f
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/9fb4f47f
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/9fb4f47f
Branch: refs/heads/master
Commit: 9fb4f47f352dc1c1f5f20de80840d39e1eebb985
Parents: b1deb44
Author: Benedikt Ritter <br...@apache.org>
Authored: Sun Aug 26 17:25:29 2018 +0200
Committer: Benedikt Ritter <br...@apache.org>
Committed: Sun Aug 26 17:25:29 2018 +0200
----------------------------------------------------------------------
src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-lang/blob/9fb4f47f/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java b/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java
index c4cccca..68146b1 100644
--- a/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java
+++ b/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java
@@ -733,10 +733,8 @@ public class FieldUtils {
}
}
}
- } catch (final NoSuchFieldException ignored) {
+ } catch (final NoSuchFieldException | IllegalAccessException ignored) {
// The field class contains always a modifiers field
- } catch (final IllegalAccessException ignored) {
- // The modifiers field is made accessible
}
}