ignite-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [ignite] Jokser commented on a change in pull request #6884: Ignite 12088
Date Thu, 19 Sep 2019 15:22:39 GMT
Jokser commented on a change in pull request #6884: Ignite 12088
URL: https://github.com/apache/ignite/pull/6884#discussion_r326234709
 
 

 ##########
 File path: modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheUtils.java
 ##########
 @@ -1578,6 +1581,17 @@ public static TransactionConfiguration transactionConfiguration(@Nullable
final
      */
     public static void validateCacheName(String name) throws IllegalArgumentException {
         A.ensure(name != null && !name.isEmpty(), "Cache name must not be null or
empty.");
+        A.ensure(name.length() <= MAX_FILE_NAME_LENGTH, "Length of cache name can not
exceed "+ MAX_FILE_NAME_LENGTH +".");
+    }
+
+    /**
+     *
+     * @param name
+     * @throws IllegalArgumentException In case group name is not valid
+     */
+    public static void validateCacheGroupName(String name) throws IllegalArgumentException
{
+        if (name != null)
+            A.ensure(name.length() <= MAX_FILE_NAME_LENGTH, "Length of cache group name
can not exceed "+ MAX_FILE_NAME_LENGTH +".");
 
 Review comment:
   Code style issue - there should be whitespace between `"` and `+`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message