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/10/20 14:41:18 UTC

[sling-org-apache-sling-jcr-contentparser] 19/38: SLING-6872 make JsonTicksConverter public to allow embedding

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

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-contentparser.git

commit 753dfa4bdfef23c082644eca8759537c824865e1
Author: Stefan Seifert <ss...@apache.org>
AuthorDate: Tue May 23 21:49:54 2017 +0000

    SLING-6872 make JsonTicksConverter public to allow embedding
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1795975 13f79535-47bb-0310-9956-ffa450edef68
---
 .../apache/sling/jcr/contentparser/impl/JsonTicksConverter.java   | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/sling/jcr/contentparser/impl/JsonTicksConverter.java b/src/main/java/org/apache/sling/jcr/contentparser/impl/JsonTicksConverter.java
index 9d5f6e0..9996082 100644
--- a/src/main/java/org/apache/sling/jcr/contentparser/impl/JsonTicksConverter.java
+++ b/src/main/java/org/apache/sling/jcr/contentparser/impl/JsonTicksConverter.java
@@ -29,9 +29,13 @@ package org.apache.sling.jcr.contentparser.impl;
  *     After the conversion they are always escaped.</li>
  * </ul>
  */
-class JsonTicksConverter {
+public final class JsonTicksConverter {
     
-    static String tickToDoubleQuote(final String input) {
+    private JsonTicksConverter() {
+        // static methods only
+    }
+    
+    public static String tickToDoubleQuote(final String input) {
         final int len = input.length();
         final StringBuilder output = new StringBuilder(len);
         boolean quoted = false;

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