CB-11391 Revert c2c0072 android: Does not pass sonarqube scan
Originaly was trying to correct this sonarqube complaint:
"Correctness - Suspicious reference comparison of Boolean values"
I failed to notice that the condition can be one of three states:
true, false, or null.
The original code was valid. Undoing my change.
This closes #21
diff --git a/src/android/WhitelistPlugin.java b/src/android/WhitelistPlugin.java
index 2396568..4e4f57e 100644
--- a/src/android/WhitelistPlugin.java
+++ b/src/android/WhitelistPlugin.java
@@ -118,7 +118,7 @@
@Override
public Boolean shouldAllowRequest(String url) {
- if (shouldAllowNavigation(url)) {
+ if (Boolean.TRUE == shouldAllowNavigation(url)) {
return true;
}
if (allowedRequests.isUrlWhiteListed(url)) {