Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/org/adblockplus/libadblockplus/JsValue.java

Issue 5697499218051072: Usage of new API, cleanups (reduced) (Closed)
Patch Set: Adressed first batch of review issues. Created April 16, 2014, 5:36 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/org/adblockplus/libadblockplus/JsValue.java
diff --git a/src/org/adblockplus/libadblockplus/JsValue.java b/src/org/adblockplus/libadblockplus/JsValue.java
index bb47ddae5068d1f16fd0a52530874e2c300184f3..f3dd4eafe5ba5f6fc34e885f6c5fe3c425ba37b4 100644
--- a/src/org/adblockplus/libadblockplus/JsValue.java
+++ b/src/org/adblockplus/libadblockplus/JsValue.java
@@ -100,9 +100,9 @@ public class JsValue implements Disposable
return asBoolean(this.ptr);
}
- public boolean isValid()
+ public JsValue getProperty(final String name)
{
- return isValid(this.ptr);
+ return getProperty(this.ptr, name);
}
public List<JsValue> asList()
@@ -156,7 +156,7 @@ public class JsValue implements Disposable
private final static native boolean asBoolean(long ptr);
- private final static native boolean isValid(long ptr);
+ private final static native JsValue getProperty(long ptr, String name);
private final static native List<JsValue> asList(long ptr);
« no previous file with comments | « src/org/adblockplus/libadblockplus/JsEngine.java ('k') | src/org/adblockplus/libadblockplus/ServerResponse.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld