You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by av...@apache.org on 2020/08/27 07:39:49 UTC

[ignite] branch master updated: IGNITE-13218 fixed. importComparator added to TreeSet to provide core… (#8187)

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

av pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new 81dd397  IGNITE-13218 fixed. importComparator added to TreeSet to provide core… (#8187)
81dd397 is described below

commit 81dd397c2e3856546db30a09d8ad01d653dbb691
Author: aleksey-kurinov <al...@gmail.com>
AuthorDate: Thu Aug 27 10:39:23 2020 +0300

    IGNITE-13218 fixed. importComparator added to TreeSet to provide core… (#8187)
---
 .../apache/ignite/codegen/SystemViewRowAttributeWalkerGenerator.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codegen/src/main/java/org/apache/ignite/codegen/SystemViewRowAttributeWalkerGenerator.java b/modules/codegen/src/main/java/org/apache/ignite/codegen/SystemViewRowAttributeWalkerGenerator.java
index 6fe5537..9f6043b 100644
--- a/modules/codegen/src/main/java/org/apache/ignite/codegen/SystemViewRowAttributeWalkerGenerator.java
+++ b/modules/codegen/src/main/java/org/apache/ignite/codegen/SystemViewRowAttributeWalkerGenerator.java
@@ -148,7 +148,7 @@ public class SystemViewRowAttributeWalkerGenerator {
      */
     private <T> Collection<String> generate(Class<T> clazz) {
         final List<String> code = new ArrayList<>();
-        final Set<String> imports = new TreeSet<>();
+        final Set<String> imports = new TreeSet<>(Comparator.comparing(s -> s.replace(";", "")));
 
         addImport(imports, SystemViewRowAttributeWalker.class);
         addImport(imports, clazz);