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 09:58:07 UTC

[sling-org-apache-sling-repoinit-parser] 18/22: SLING-5449 - Implement CreatePath in oak-jcr module

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.repoinit.parser-1.0.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-repoinit-parser.git

commit 69753a9b092f7651c357eebbbe16d61dc4165519
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Tue May 17 15:35:15 2016 +0000

    SLING-5449 - Implement CreatePath in oak-jcr module
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/repoinit/parser@1744286 13f79535-47bb-0310-9956-ffa450edef68
---
 .../org/apache/sling/repoinit/parser/operations/CreatePath.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/sling/repoinit/parser/operations/CreatePath.java b/src/main/java/org/apache/sling/repoinit/parser/operations/CreatePath.java
index ae1e313..d1b87d0 100644
--- a/src/main/java/org/apache/sling/repoinit/parser/operations/CreatePath.java
+++ b/src/main/java/org/apache/sling/repoinit/parser/operations/CreatePath.java
@@ -18,7 +18,7 @@
 package org.apache.sling.repoinit.parser.operations;
 
 import java.util.ArrayList;
-import java.util.Iterator;
+import java.util.Collections;
 import java.util.List;
 
 public class CreatePath extends Operation {
@@ -62,7 +62,7 @@ public class CreatePath extends Operation {
         }
     }
     
-    public Iterator<PathSegmentDefinition> getDefinitions() {
-        return pathDef.iterator();
+    public List<PathSegmentDefinition> getDefinitions() {
+        return Collections.unmodifiableList(pathDef);
     }
 }

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