We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 930c3a3 commit f515b02Copy full SHA for f515b02
android-plugin/src/main/java/io/ecocode/java/checks/environment/sobriety/TorchFreeRule.java
@@ -43,11 +43,8 @@ public String getMessage() {
43
44
@Override
45
protected void checkConstantValue(Optional<Object> optionalConstantValue, Tree reportTree, Object constantValueToCheck) {
46
- try {
47
- if (optionalConstantValue.isPresent() && (optionalConstantValue.get().equals(constantValueToCheck) || ((Boolean) optionalConstantValue.get()))) {
48
- reportIssue(reportTree, getMessage());
49
- }
50
- } catch (Exception ignored) {
+ if (optionalConstantValue.isPresent() && (optionalConstantValue.get().equals(constantValueToCheck) || ((Boolean) optionalConstantValue.get()))) {
+ reportIssue(reportTree, getMessage());
51
}
52
53
0 commit comments