You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2016/06/09 15:46:23 UTC
cordova-plugin-whitelist git commit: CB-11391 Revert c2c0072 android:
Does not pass sonarqube scan
Repository: cordova-plugin-whitelist
Updated Branches:
refs/heads/master c2c007237 -> ab36e6d19
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
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-whitelist/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-whitelist/commit/ab36e6d1
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-whitelist/tree/ab36e6d1
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-whitelist/diff/ab36e6d1
Branch: refs/heads/master
Commit: ab36e6d19b3e1d6b6e24562cdb43980ef9d02df6
Parents: c2c0072
Author: Rob Close <ro...@sap.com>
Authored: Wed Jun 8 14:58:27 2016 -0400
Committer: Vladimir Kotikov <ko...@gmail.com>
Committed: Thu Jun 9 18:45:28 2016 +0300
----------------------------------------------------------------------
src/android/WhitelistPlugin.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-whitelist/blob/ab36e6d1/src/android/WhitelistPlugin.java
----------------------------------------------------------------------
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 @@ public class WhitelistPlugin extends CordovaPlugin {
@Override
public Boolean shouldAllowRequest(String url) {
- if (shouldAllowNavigation(url)) {
+ if (Boolean.TRUE == shouldAllowNavigation(url)) {
return true;
}
if (allowedRequests.isUrlWhiteListed(url)) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org