cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From macdo...@apache.org
Subject [cordova-plugin-whitelist] 03/28: Fix XMl parsing broken by superclass refactor (XmlResourceParser->XmlPullParser)
Date Tue, 21 Nov 2017 00:26:02 GMT
This is an automated email from the ASF dual-hosted git repository.

macdonst pushed a commit to branch deprecation
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-whitelist.git

commit 6a3d2cb3567435d639e62c2c0992c26bb9468a18
Author: Jason Chase <chasej@chromium.org>
AuthorDate: Fri Mar 20 12:09:01 2015 -0400

    Fix XMl parsing broken by superclass refactor (XmlResourceParser->XmlPullParser)
---
 src/android/LegacyWhitelistPlugin.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/android/LegacyWhitelistPlugin.java b/src/android/LegacyWhitelistPlugin.java
index 1199466..76a29fc 100644
--- a/src/android/LegacyWhitelistPlugin.java
+++ b/src/android/LegacyWhitelistPlugin.java
@@ -40,7 +40,8 @@ public class LegacyWhitelistPlugin extends CordovaPlugin {
         internalWhitelist.addWhiteListEntry("data:*", false);
 
         new ConfigXmlParser(){
-            public void handleStartTag(XmlResourceParser xml) {
+            @Override
+            public void handleStartTag(XmlPullParser xml) {
                 String strNode = xml.getName();
                 if (strNode.equals("access")) {
                     String origin = xml.getAttributeValue(null, "origin");
@@ -63,7 +64,8 @@ public class LegacyWhitelistPlugin extends CordovaPlugin {
                     }
                 }
             }
-            public void handleEndTag(XmlResourceParser xml) {
+            @Override
+            public void handleEndTag(XmlPullParser xml) {
             }
         }.parse(cordova.getActivity());
     }

-- 
To stop receiving notification emails like this one, please contact
"commits@cordova.apache.org" <commits@cordova.apache.org>.

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message