diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-06-13 11:54:20 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-06-14 21:19:14 +0200 |
commit | f16a04ff63a2c8a0836b4f44eca581766d268c75 (patch) | |
tree | d3ff1eb28a4d9b8703591f8eeb11069a4184911b /sonar-core | |
parent | 18864261283b2b82740e927f5a75c6c60a5e4e44 (diff) | |
download | sonarqube-f16a04ff63a2c8a0836b4f44eca581766d268c75.tar.gz sonarqube-f16a04ff63a2c8a0836b4f44eca581766d268c75.zip |
Improve documentation of UuidFactory
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/util/UuidFactory.java | 2 | ||||
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/util/Uuids.java | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/util/UuidFactory.java b/sonar-core/src/main/java/org/sonar/core/util/UuidFactory.java index 81203880500..42980f37395 100644 --- a/sonar-core/src/main/java/org/sonar/core/util/UuidFactory.java +++ b/sonar-core/src/main/java/org/sonar/core/util/UuidFactory.java @@ -27,7 +27,7 @@ public interface UuidFactory { * <p/> * UUID is a base64 ASCII encoded string and is URL-safe. It does not contain - and + characters * but only letters, digits, dash (-) and underscore (_). Length can vary but does - * not exceed 40 characters (arbitrary value). + * not exceed {@link Uuids#MAX_LENGTH} characters (arbitrary value). */ String create(); diff --git a/sonar-core/src/main/java/org/sonar/core/util/Uuids.java b/sonar-core/src/main/java/org/sonar/core/util/Uuids.java index f7ff3d68421..13fb00a196c 100644 --- a/sonar-core/src/main/java/org/sonar/core/util/Uuids.java +++ b/sonar-core/src/main/java/org/sonar/core/util/Uuids.java @@ -21,6 +21,7 @@ package org.sonar.core.util; public class Uuids { + public static final int MAX_LENGTH = 40; public static final String UUID_EXAMPLE_01 = "AU-Tpxb--iU5OvuD2FLy"; public static final String UUID_EXAMPLE_02 = "AU-TpxcA-iU5OvuD2FLz"; public static final String UUID_EXAMPLE_03 = "AU-TpxcA-iU5OvuD2FL0"; |