You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 10:11:05 UTC
[sling-org-apache-sling-scripting-sightly-js-provider] 08/18:
SLING-4305 Refactor the Record interface:
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.scripting.sightly.js.provider-1.0.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-sightly-js-provider.git
commit 72fdfd37553dd6b3663b8f9661b9a834aa94579a
Author: Felix Meschberger <fm...@apache.org>
AuthorDate: Thu Jan 15 17:24:21 2015 +0000
SLING-4305 Refactor the Record interface:
* get -> getProperty
* properties -> getPropertyNames
Applied patch by Radu Cotescu (thanks a lot)
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/scripting/sightly/js-use-provider@1652176 13f79535-47bb-0310-9956-ffa450edef68
---
.../apache/sling/scripting/sightly/js/impl/rhino/HybridObject.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/sling/scripting/sightly/js/impl/rhino/HybridObject.java b/src/main/java/org/apache/sling/scripting/sightly/js/impl/rhino/HybridObject.java
index 8318543..2d52120 100644
--- a/src/main/java/org/apache/sling/scripting/sightly/js/impl/rhino/HybridObject.java
+++ b/src/main/java/org/apache/sling/scripting/sightly/js/impl/rhino/HybridObject.java
@@ -44,7 +44,7 @@ public class HybridObject implements Scriptable, Record<Object> {
// Record implementation
@Override
- public Object get(String name) {
+ public Object getProperty(String name) {
if (name == null) {
return null;
}
@@ -57,7 +57,7 @@ public class HybridObject implements Scriptable, Record<Object> {
}
@Override
- public Set<String> properties() {
+ public Set<String> getPropertyNames() {
Object[] properties = scriptable.getIds();
Set<String> keys = new HashSet<String>();
for (Object property: properties) {
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.