You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by dp...@apache.org on 2019/02/04 14:50:38 UTC

[ignite-teamcity-bot] branch master updated: Code style and outcommenting not mandatory parameter

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

dpavlov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-teamcity-bot.git


The following commit(s) were added to refs/heads/master by this push:
     new 76f4c1c  Code style and outcommenting not mandatory parameter
76f4c1c is described below

commit 76f4c1c6d2c80d7aee65b3412466d699719e290a
Author: Dmitriy Pavlov <dp...@apache.org>
AuthorDate: Mon Feb 4 17:50:34 2019 +0300

    Code style and outcommenting not mandatory parameter
---
 conf/branches.json                                                    | 3 ++-
 .../src/main/java/org/apache/ignite/ci/conf/PasswordEncoder.java      | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/conf/branches.json b/conf/branches.json
index 55ffebd..ac815bd 100644
--- a/conf/branches.json
+++ b/conf/branches.json
@@ -9,7 +9,8 @@
       "code": "apache",
       /* JIRA project code for commenting tickets. Default project is "IGNITE". */
       "projectCode": "IGNITE",
-      "branchNumPrefix": "IGNITE-",
+      /* Following prefix is to be specified only if it is necessary to separate project code and branches markup in tickets. */
+      // "branchNumPrefix": "IGNITE-",
       /* JIRA Url, HTTPs is highly recommended because of Basic Auth used. */
       "url": "https://issues.apache.org/jira/",
       /** JIRA Auth token to access, use PasswordEncoder#encodeJiraTok to get from clear username/password */
diff --git a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/conf/PasswordEncoder.java b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/conf/PasswordEncoder.java
index c1769b1..bcb8b50 100644
--- a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/conf/PasswordEncoder.java
+++ b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/conf/PasswordEncoder.java
@@ -72,8 +72,8 @@ public class PasswordEncoder {
 
     @NotNull private static SecretKeySpec k() {
         int reqBytes = 128 / 8;
-        String pattern = "Ignite";
-        byte[] raw = Strings.repeat(pattern, reqBytes / pattern.length() + 1).substring(0, reqBytes).getBytes();
+        String ptrn = "Ignite";
+        byte[] raw = Strings.repeat(ptrn, reqBytes / ptrn.length() + 1).substring(0, reqBytes).getBytes();
         return new SecretKeySpec(raw, "AES");
     }