ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [10/25] incubator-ignite git commit: #ignite-311: small fix.
Date Fri, 27 Feb 2015 16:57:39 GMT
#ignite-311: small fix.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/687b618e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/687b618e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/687b618e

Branch: refs/heads/sprint-2
Commit: 687b618efc653e5129a1d04c7b3f42fde556c155
Parents: 3157a6c
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Fri Feb 20 14:59:41 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Fri Feb 20 14:59:41 2015 +0300

----------------------------------------------------------------------
 .../apache/ignite/internal/IgniteKernal.java    | 28 +++++++++++---------
 1 file changed, 15 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/687b618e/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java b/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
index abdbf76..20b2cbb 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
@@ -454,8 +454,9 @@ public class IgniteKernal implements IgniteEx, IgniteMXBean, Externalizable
{
     @Override public Collection<String> getUserAttributesFormatted() {
         assert cfg != null;
 
-        return F.transform(cfg.getUserAttributes().entrySet(), new C1<Map.Entry<String,?>,String>()
{
-            @Override public String apply(Map.Entry<String,?> e) {
+        return F.transform(cfg.getUserAttributes().entrySet(), new C1<Map.Entry<String,
?>, String>() {
+            @Override
+            public String apply(Map.Entry<String, ?> e) {
                 return e.getKey() + ", " + e.getValue().toString();
             }
         });
@@ -1534,17 +1535,18 @@ public class IgniteKernal implements IgniteEx, IgniteMXBean, Externalizable
{
             // Big thanks to: http://patorjk.com/software/taag
             // Font name "Small Slant"
             if (log.isQuiet()) {
-                U.quiet(false,
-                    "   __________  ________________ ",
-                    "  /  _/ ___/ |/ /  _/_  __/ __/ ",
-                    " _/ // (7 7    // /  / / / _/   ",
-                    "/___/\\___/_/|_/___/ /_/ /___/  ",
-                    " ",
-                    ver,
-                    COPYRIGHT,
-                    pluginInfo(),
-                    "",
-                    "Quiet mode.");
+                List<String> info = new ArrayList<>();
+                info.add("   __________  ________________ ");
+                info.add("  /  _/ ___/ |/ /  _/_  __/ __/ ");
+                info.add(" _/ // (7 7    // /  / / / _/   ");
+                info.add("/___/\\___/_/|_/___/ /_/ /___/  ");
+                info.add(" ");
+                info.add(COPYRIGHT);
+                info.addAll(Arrays.asList(pluginInfo().split(NL)));
+                info.add("");
+                info.add("Quiet mode.");
+
+                U.quiet(false, info.toArray(new String[info.size()]));
 
                 if (fileName != null)
                     U.quiet(false, "  ^-- Logging to file '" +  fileName + '\'');


Mime
View raw message