From f73bd4fd1d83d5eca270b37b0f676746d8983081 Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Thu, 19 Jul 2012 14:36:44 +0400 Subject: [PATCH] Members reordered to meet conventions --- .../jet/test/util/NamespaceComparator.java | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/compiler/tests/org/jetbrains/jet/test/util/NamespaceComparator.java b/compiler/tests/org/jetbrains/jet/test/util/NamespaceComparator.java index 10ed275823a..969973cd99c 100644 --- a/compiler/tests/org/jetbrains/jet/test/util/NamespaceComparator.java +++ b/compiler/tests/org/jetbrains/jet/test/util/NamespaceComparator.java @@ -46,23 +46,14 @@ import java.util.*; */ public class NamespaceComparator { - private final boolean includeObject; - private final Predicate includeIntoOutput; - - private NamespaceComparator(boolean includeObject, Predicate includeIntoOutput) { - this.includeObject = includeObject; - this.includeIntoOutput = includeIntoOutput; - } - public static void compareNamespaces( - @NotNull NamespaceDescriptor nsa, - @NotNull NamespaceDescriptor nsb, - boolean includeObject, - @NotNull File txtFile + @NotNull NamespaceDescriptor nsa, + @NotNull NamespaceDescriptor nsb, + boolean includeObject, + @NotNull File txtFile ) { compareNamespaces(nsa, nsb, includeObject, Predicates.alwaysTrue(), txtFile); } - public static void compareNamespaces( @NotNull NamespaceDescriptor nsa, @NotNull NamespaceDescriptor nsb, @@ -96,10 +87,13 @@ public class NamespaceComparator { return new NamespaceComparator(includeObject, includeIntoOutput).doCompareNamespaces(nsa, nsb); } - private static > List sorted(Collection items) { - List r = new ArrayList(items); - Collections.sort(r); - return r; + private final boolean includeObject; + + private final Predicate includeIntoOutput; + + private NamespaceComparator(boolean includeObject, Predicate includeIntoOutput) { + this.includeObject = includeObject; + this.includeIntoOutput = includeIntoOutput; } private String doCompareNamespaces(@NotNull NamespaceDescriptor nsa, @NotNull NamespaceDescriptor nsb) { @@ -767,4 +761,10 @@ public class NamespaceComparator { } return r.toString(); } + + private static > List sorted(Collection items) { + List r = new ArrayList(items); + Collections.sort(r); + return r; + } }