ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anovi...@apache.org
Subject [49/50] ignite git commit: IGNITE-843 Minor fix.
Date Wed, 03 Feb 2016 10:57:14 GMT
IGNITE-843 Minor fix.


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

Branch: refs/heads/ignite-843-rc3
Commit: fabdaf42a534ab270e20fc3918aa0e771c22a5f5
Parents: 0d14a01
Author: Andrey <anovikov@gridgain.com>
Authored: Wed Feb 3 17:52:22 2016 +0700
Committer: Andrey <anovikov@gridgain.com>
Committed: Wed Feb 3 17:52:22 2016 +0700

----------------------------------------------------------------------
 .../src/main/js/helpers/generator/generator-java.js            | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/fabdaf42/modules/control-center-web/src/main/js/helpers/generator/generator-java.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/helpers/generator/generator-java.js b/modules/control-center-web/src/main/js/helpers/generator/generator-java.js
index 4f4a1be..445a5a0 100644
--- a/modules/control-center-web/src/main/js/helpers/generator/generator-java.js
+++ b/modules/control-center-web/src/main/js/helpers/generator/generator-java.js
@@ -853,7 +853,7 @@ $generatorJava.clusterEvents = function (cluster, res) {
 
             res.line('int k = 0;');
 
-            _.forEach(cluster.includeEventTypes, function(value) {
+            _.forEach(cluster.includeEventTypes, function(value, idx) {
                 res.needEmptyLine = true;
 
                 var evtGrpDscr = _.find(evtGrps, {value: value});
@@ -861,7 +861,9 @@ $generatorJava.clusterEvents = function (cluster, res) {
                 evt = res.importStatic(evtGrpDscr.class + '.' + value);
 
                 res.line('System.arraycopy(' + evt + ', 0, events, k, ' + evt + '.length);');
-                res.line('k += ' + evt + '.length;');
+
+                if (idx < cluster.includeEventTypes.length - 1)
+                    res.line('k += ' + evt + '.length;');
             });
 
             res.needEmptyLine = true;


Mime
View raw message