diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-01-16 17:19:55 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-01-17 11:29:48 +0100 |
commit | d231aef15a9f8bf4faabac179b73f33731a64c06 (patch) | |
tree | 4ab9e77a4c168598bd922b795866b26c115ead5f | |
parent | c174f904d00124987d856659901078405e943b08 (diff) | |
download | sonarqube-d231aef15a9f8bf4faabac179b73f33731a64c06.tar.gz sonarqube-d231aef15a9f8bf4faabac179b73f33731a64c06.zip |
Calling Field.setAccessible(true) is accepted here -> not a quality flaw
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/utils/FieldUtils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/FieldUtils.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/FieldUtils.java index 6efb1507f85..de459c25af1 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/FieldUtils.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/FieldUtils.java @@ -49,7 +49,7 @@ public final class FieldUtils { for (Field declaredField : c.getDeclaredFields()) { if (!Modifier.isPublic(declaredField.getModifiers())) { if (forceAccess) { - declaredField.setAccessible(true); + declaredField.setAccessible(true);//NOSONAR only works from sufficiently privileged code } else { continue; } |