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:17:30 UTC
[sling-org-apache-sling-settings] 11/21: SLING-5190 factor out of
SlingSettingsServiceImpl a Sling ID util
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.settings-1.3.8
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-settings.git
commit de5307bfdf12d42cc0786a4889826dcd9824aba4
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Fri Oct 23 14:46:12 2015 +0000
SLING-5190 factor out of SlingSettingsServiceImpl a Sling ID util
* make methods in SlingIdUtil public
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/settings@1710227 13f79535-47bb-0310-9956-ffa450edef68
---
src/main/java/org/apache/sling/settings/impl/SlingIdUtil.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/apache/sling/settings/impl/SlingIdUtil.java b/src/main/java/org/apache/sling/settings/impl/SlingIdUtil.java
index af20483..23875f1 100644
--- a/src/main/java/org/apache/sling/settings/impl/SlingIdUtil.java
+++ b/src/main/java/org/apache/sling/settings/impl/SlingIdUtil.java
@@ -28,14 +28,14 @@ import java.util.UUID;
public class SlingIdUtil {
- static String createSlingId() {
+ public static String createSlingId() {
return UUID.randomUUID().toString();
}
/**
* Read the id from a file.
*/
- static String readSlingId(final File idFile, int maxLength) throws IOException {
+ public static String readSlingId(final File idFile, int maxLength) throws IOException {
if (idFile.exists() && idFile.length() >= maxLength) {
DataInputStream dis = null;
try {
@@ -60,7 +60,7 @@ public class SlingIdUtil {
/**
* Write the sling id file.
*/
- static void writeSlingId(final File idFile, final String id) throws IOException {
+ public static void writeSlingId(final File idFile, final String id) throws IOException {
idFile.delete();
idFile.getParentFile().mkdirs();
DataOutputStream dos = null;
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.