From c6f64c454e0c71eda66eb4485968ed5ac578b0b1 Mon Sep 17 00:00:00 2001 From: oruam85 Date: Wed, 21 Jan 2015 16:46:33 -0430 Subject: [PATCH] 121: More style changes --- .../java/com/jcabi/aspects/aj/MnemosTest.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/test/java/com/jcabi/aspects/aj/MnemosTest.java b/src/test/java/com/jcabi/aspects/aj/MnemosTest.java index f426c044..ab1ea392 100644 --- a/src/test/java/com/jcabi/aspects/aj/MnemosTest.java +++ b/src/test/java/com/jcabi/aspects/aj/MnemosTest.java @@ -43,7 +43,7 @@ public final class MnemosTest { /** * The representation of a empty array. */ - private final String emptyarray = "[]"; + private static final transient String EMPTY_ARRAY = "[]"; /** * Mnemos can build a string from an object. @@ -57,7 +57,7 @@ public void buildsTextFromObject() throws Exception { new Object[] {"\u20ac-plain", "'\u20ac-plain'"}, new Object[] {"test ", "'test '"}, new Object[] {null, "NULL"}, - new Object[] {new String[0], this.emptyarray}, + new Object[] {new String[0], this.EMPTY_ARRAY}, new Object[] {new String[] {"abc", "x"}, "['abc', 'x']"}, new Object[] {new Object[] {null, 5}, "[NULL, 5]"}, }; @@ -98,7 +98,7 @@ public String toString() { @Test public void buildsTextFromIntArray() throws Exception { final Object[][] pairs = new Object[][] { - new Object[] {new int[0], this.emptyarray}, + new Object[] {new int[0], this.EMPTY_ARRAY}, new Object[] {new int[] {1}, "[1]"}, new Object[] {new int[] {1, 2, 3}, "[1, 2, 3]"}, }; @@ -117,7 +117,7 @@ public void buildsTextFromIntArray() throws Exception { @Test public void buildsTextFromLongArray() throws Exception { final Object[][] pairs = new Object[][] { - new Object[] {new long[0], this.emptyarray}, + new Object[] {new long[0], this.EMPTY_ARRAY}, new Object[] {new long[] {2L}, "[2]"}, new Object[] {new long[] {2L, 3L, 4L}, "[2, 3, 4]"}, }; @@ -136,7 +136,7 @@ public void buildsTextFromLongArray() throws Exception { @Test public void buildsTextFromFloatArray() throws Exception { final Object[][] pairs = new Object[][] { - new Object[] {new float[0], this.emptyarray}, + new Object[] {new float[0], this.EMPTY_ARRAY}, new Object[] {new float[] {1.01f}, "[1.01]"}, new Object[] { new float[] {1.01f, 2.02f, 3.03f}, @@ -158,7 +158,7 @@ public void buildsTextFromFloatArray() throws Exception { @Test public void buildsTextFromDoubleArray() throws Exception { final Object[][] pairs = new Object[][] { - new Object[] {new double[0], this.emptyarray}, + new Object[] {new double[0], this.EMPTY_ARRAY}, new Object[] {new double[] {2.01}, "[2.01]"}, new Object[] { new double[] {2.01, 2.02, 2.03}, @@ -180,7 +180,7 @@ public void buildsTextFromDoubleArray() throws Exception { @Test public void buildsTextFromCharArray() throws Exception { final Object[][] pairs = new Object[][] { - new Object[] {new char[0], this.emptyarray}, + new Object[] {new char[0], this.EMPTY_ARRAY}, new Object[] {new char[] {'a'}, "[a]"}, new Object[] {new char[] {'a', 'b', 'c'}, "[a, b, c]"}, }; @@ -199,7 +199,7 @@ public void buildsTextFromCharArray() throws Exception { @Test public void buildsTextFromBooleanArray() throws Exception { final Object[][] pairs = new Object[][] { - new Object[] {new boolean[0], this.emptyarray}, + new Object[] {new boolean[0], this.EMPTY_ARRAY}, new Object[] {new boolean[] {true}, "[true]"}, new Object[] { new boolean[] {true, false, false},