You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2017/06/20 06:00:32 UTC
[30/50] ignite git commit: ignite-2.1 Fixed
UnsupportedOperationException in case of single file.
ignite-2.1 Fixed UnsupportedOperationException in case of single file.
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/e7d0e790
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/e7d0e790
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/e7d0e790
Branch: refs/heads/ignite-2.1.2-exchange
Commit: e7d0e7908d3efbfd8e1d30dc404f3c1f8641fef5
Parents: 52626df
Author: Alexey Kuznetsov <ak...@gridgain.com>
Authored: Sat Jun 17 20:00:29 2017 +0700
Committer: Alexey Kuznetsov <ak...@gridgain.com>
Committed: Sat Jun 17 20:00:29 2017 +0700
----------------------------------------------------------------------
.../org/apache/ignite/internal/visor/util/VisorTaskUtils.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/e7d0e790/modules/core/src/main/java/org/apache/ignite/internal/visor/util/VisorTaskUtils.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/util/VisorTaskUtils.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/util/VisorTaskUtils.java
index c9ed882..30cb499 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/util/VisorTaskUtils.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/visor/util/VisorTaskUtils.java
@@ -551,7 +551,8 @@ public class VisorTaskUtils {
return res;
}
- return F.asList(new VisorLogFile(file));
+ // Return ArrayList, because it could be sorted in matchedFiles() method.
+ return new ArrayList<>(F.asList(new VisorLogFile(file)));
}
/**