| Chunk |
|---|
| Conflicting content |
|---|
private void generateInitialization(Object values) {
buf.append("{");
<<<<<<< HEAD
for (int i = 0; i < values.length; i++) {
if (values[i].getClass().isArray()) {
int length = Array.getLength(values[i]);
for (int j = 0; j < length; j++) {
Object element = Array.get(values[i], j);
if (element.getClass().isArray()) {
_initialize(element);
}
else {
_initializeValue(element);
}
if (j + 1 < length) {
buf.append(",");
}
}
}
else {
_initializeValue(values[i]);
if (i + 1 < values.length) {
buf.append(",");
}
=======
int length = Array.getLength(values);
for (int i = 0; i < length; i++) {
Object element = Array.get(values, i);
if (element.getClass().isArray()) {
generateInitialization(element);
} else {
Statement statement = GenUtil.generate(context, element);
String statementExpr = statement.generate(context);
GenUtil.assertAssignableTypes(statement.getType(), componentType);
buf.append(statementExpr);
}
if (i + 1 < length) {
buf.append(",");
>>>>>>> 8c50466c8e86bd116feed5b076fe660a1ad9c551
}
}
buf.append("}"); |
| Solution content |
|---|
private void generateInitialization(Object values) {
buf.append("{");
int length = Array.getLength(values);
for (int i = 0; i < length; i++) {
Object element = Array.get(values, i);
if (element.getClass().isArray()) {
generateInitialization(element);
}
else {
Statement statement = GenUtil.generate(context, element);
String statementExpr = statement.generate(context);
GenUtil.assertAssignableTypes(statement.getType(), componentType);
buf.append(statementExpr);
}
if (i + 1 < length) {
buf.append(",");
}
}
buf.append("}"); |
| File |
|---|
| ArrayBuilderImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| For statement |
| If statement |
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
}
public boolean isProtected() {
<<<<<<< HEAD
return getEnclosedMetaObject().isClassOrInterface() != null &&
=======
return getEnclosedMetaObject().isClassOrInterface() != null &&
>>>>>>> 8c50466c8e86bd116feed5b076fe660a1ad9c551
getEnclosedMetaObject().isClassOrInterface().isProtected();
}
|
| Solution content |
|---|
}
public boolean isProtected() {
return getEnclosedMetaObject().isClassOrInterface() != null &&
getEnclosedMetaObject().isClassOrInterface().isProtected();
}
|
| File |
|---|
| GWTClass.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Method invocation |
| Return statement |
| Chunk |
|---|
| Conflicting content |
|---|
* @param actual
*/
protected static void assertEquals(String expected, String actual) {
<<<<<<< HEAD
org.junit.Assert.assertEquals(expected.replaceAll("\\s+", " "),
actual.replaceAll("\\s+", " "));
}
protected static void assertEquals(String message, String expected, String actual) {
org.junit.Assert.assertEquals(message, expected.replaceAll("\\s+", " "),
actual.replaceAll("\\s+", " "));
=======
org.junit.Assert.assertEquals(expected.replaceAll("\\s+", " ").trim(),
actual.replaceAll("\\s+", " ").trim());
}
protected static void assertEquals(String message, String expected, String actual) {
org.junit.Assert.assertEquals(message, expected.replaceAll("\\s+", " ").trim(),
actual.replaceAll("\\s+", " ").trim());
>>>>>>> 8c50466c8e86bd116feed5b076fe660a1ad9c551
}
} |
| Solution content |
|---|
* @param actual
*/
protected static void assertEquals(String expected, String actual) {
org.junit.Assert.assertEquals(expected.replaceAll("\\s+", " ").trim(),
actual.replaceAll("\\s+", " ").trim());
}
protected static void assertEquals(String message, String expected, String actual) {
org.junit.Assert.assertEquals(message, expected.replaceAll("\\s+", " ").trim(),
actual.replaceAll("\\s+", " ").trim());
}
} |
| File |
|---|
| AbstractStatementBuilderTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Method signature |
| Chunk |
|---|
| Conflicting content |
|---|
"if (str instanceof java.lang.String) { }\n";
public static final String IF_ELSE_BLOCK_RESULT_NO_RHS =
<<<<<<< HEAD
"if (str.endsWith(\"abc\")) { " +
"java.lang.Integer n = 0;\n" +
"} else {" +
"\njava.lang.Integer n = 1;\n" +
"}\n";
public static final String IF_ELSE_BLOCK_RESULT_RHS =
"if (n > m) { " +
"java.lang.Integer n = 0;\n" +
"} else {" +
"\njava.lang.Integer n = 1;\n" +
"}\n";
public static final String IF_ELSEIF_BLOCK_RESULT_NO_RHS_NESTED =
"if (s.endsWith(\"abc\")) {\n" +
"n = 0;\n" +
"} else {\n" +
"if (s.startsWith(\"def\")) { " +
"n = 1;\n" +
"}\n;\n" +
"}\n";
public static final String IF_ELSEIF_BLOCK_RESULT_NO_RHS =
"if (s.endsWith(\"abc\")) {\n" +
"n = 0;\n" +
"} else if (s.startsWith(\"def\")) { " +
"n = 1;\n" +
"}\n";
public static final String IF_ELSEIF_ELSE_BLOCK_RESULT_NO_RHS_NESTED =
"if (s.endsWith(\"abc\")) {\n" +
"n = 0;\n" +
"} else {\n" +
"if (s.startsWith(\"def\")) { " +
"n = 1;\n" +
"} else { " +
"n = 2;\n" +
"}\n;\n" +
"}\n";
public static final String IF_ELSEIF_ELSE_BLOCK_RESULT_NO_RHS =
"if (s.endsWith(\"abc\")) {\n" +
"n = 0;\n" +
"} else if (s.startsWith(\"def\")) { " +
"n = 1;\n" +
"} else { " +
"n = 2;\n" +
"}\n";
public static final String IF_ELSEIF_ELSE_BLOCK_RESULT_RHS_NESTED =
"if (n > m) {\n" +
"n = 0;\n" +
"} else {\n" +
"if (m > n) { " +
"n = 1;\n" +
"} else { " +
"n = 2;\n" +
"}\n;\n" +
"}\n";
public static final String IF_ELSEIF_ELSE_BLOCK_RESULT_RHS =
"if (n > m) {\n" +
"n = 0;\n" +
"} else if (m > n) { " +
"n = 1;\n" +
"} else if (m == n) { " +
"n = 2;\n" +
"} else { " +
"n = 3;\n" +
"}\n";
}
=======
" if (str.endsWith(\"abc\")) { " +
" java.lang.Integer n = 0;\n" +
"} else {" +
" \njava.lang.Integer n = 1;\n" +
"}\n";
public static final String IF_ELSE_BLOCK_RESULT_RHS =
" if (n > m) { " +
" java.lang.Integer n = 0;\n" +
"} else {" +
" \njava.lang.Integer n = 1;\n" +
"}\n";
public static final String IF_ELSEIF_BLOCK_RESULT_NO_RHS_NESTED =
" if (s.endsWith(\"abc\")) {\n" +
" n = 0;\n" +
"} else {\n" +
" if (s.startsWith(\"def\")) { " +
" n = 1;\n" +
" }\n;\n" +
"}\n";
public static final String IF_ELSEIF_BLOCK_RESULT_NO_RHS =
" if (s.endsWith(\"abc\")) {\n" +
" n = 0;\n" +
"} else if (s.startsWith(\"def\")) { " +
" n = 1;\n" +
"}\n";
public static final String IF_ELSEIF_ELSE_BLOCK_RESULT_NO_RHS_NESTED =
" if (s.endsWith(\"abc\")) {\n" +
" n = 0;\n" +
"} else {\n" +
" if (s.startsWith(\"def\")) { " +
" n = 1;\n" +
" } else { " +
" n = 2;\n" +
" }\n;\n" +
"}\n";
public static final String IF_ELSEIF_ELSE_BLOCK_RESULT_NO_RHS =
" if (s.endsWith(\"abc\")) {\n" +
" n = 0;\n" +
"} else if (s.startsWith(\"def\")) { " +
" n = 1;\n" +
"} else { " +
" n = 2;\n" +
"}\n";
public static final String IF_ELSEIF_ELSE_BLOCK_RESULT_RHS_NESTED =
" if (n > m) {\n" +
" n = 0;\n" +
"} else {\n" +
" if (m > n) { " +
" n = 1;\n" +
" } else { " +
" n = 2;\n" +
" }\n;\n" +
"}\n";
public static final String IF_ELSEIF_ELSE_BLOCK_RESULT_RHS =
" if (n > m) {\n" +
" n = 0;\n" +
"} else if (m > n) { " +
" n = 1;\n" +
"} else if (m == n) { " +
" n = 2;\n" +
"} else { " +
" n = 3;\n" +
"}\n";
}
>>>>>>> 8c50466c8e86bd116feed5b076fe660a1ad9c551 |
| Solution content |
|---|
"if (str instanceof java.lang.String) { }\n";
public static final String IF_ELSE_BLOCK_RESULT_NO_RHS =
" if (str.endsWith(\"abc\")) { " +
" java.lang.Integer n = 0;\n" +
"} else {" +
" \njava.lang.Integer n = 1;\n" +
"}\n";
public static final String IF_ELSE_BLOCK_RESULT_RHS =
" if (n > m) { " +
" java.lang.Integer n = 0;\n" +
"} else {" +
" \njava.lang.Integer n = 1;\n" +
"}\n";
public static final String IF_ELSEIF_BLOCK_RESULT_NO_RHS_NESTED =
" if (s.endsWith(\"abc\")) {\n" +
" n = 0;\n" +
"} else {\n" +
" if (s.startsWith(\"def\")) { " +
" n = 1;\n" +
" }\n;\n" +
"}\n";
public static final String IF_ELSEIF_BLOCK_RESULT_NO_RHS =
" if (s.endsWith(\"abc\")) {\n" +
" n = 0;\n" +
"} else if (s.startsWith(\"def\")) { " +
" n = 1;\n" +
"}\n";
public static final String IF_ELSEIF_ELSE_BLOCK_RESULT_NO_RHS_NESTED =
" if (s.endsWith(\"abc\")) {\n" +
" n = 0;\n" +
"} else {\n" +
" if (s.startsWith(\"def\")) { " +
" n = 1;\n" +
" } else { " +
" n = 2;\n" +
" }\n;\n" +
"}\n";
public static final String IF_ELSEIF_ELSE_BLOCK_RESULT_NO_RHS =
" if (s.endsWith(\"abc\")) {\n" +
" n = 0;\n" +
"} else if (s.startsWith(\"def\")) { " +
" n = 1;\n" +
"} else { " +
" n = 2;\n" +
"}\n";
public static final String IF_ELSEIF_ELSE_BLOCK_RESULT_RHS_NESTED =
" if (n > m) {\n" +
" n = 0;\n" +
"} else {\n" +
" if (m > n) { " +
" n = 1;\n" +
" } else { " +
" n = 2;\n" +
" }\n;\n" +
"}\n";
public static final String IF_ELSEIF_ELSE_BLOCK_RESULT_RHS =
" if (n > m) {\n" +
" n = 0;\n" +
"} else if (m > n) { " +
" n = 1;\n" +
"} else if (m == n) { " +
" n = 2;\n" +
"} else { " +
" n = 3;\n" +
"}\n";
} |
| File |
|---|
| IfBlockBuilderTestResult.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Attribute |
| Chunk |
|---|
| Conflicting content |
|---|
public interface LoopBuilderTestResult {
public static final String FOREACH_RESULT_STRING_IN_LIST =
<<<<<<< HEAD
"for (java.lang.String element : list) {" +
"\n}";
public static final String FOREACH_RESULT_STRING_IN_ARRAY_ONE_STATEMENT =
"for (java.lang.String element : list) {" +
"\nnew java.lang.String();" +
"\n}";
public static final String FOREACH_RESULT_OBJECT_IN_LIST_TWO_STATEMENTS =
"for (java.lang.Object element : list) {" +
"\nnew java.lang.String();" +
"\nnew java.lang.Object();" +
"\n}";
public static final String FOREACH_RESULT_OBJECT_IN_LIST =
"for (java.lang.Object element : list) {" +
"\n}";
public static final String FOREACH_RESULT_NESTED_STRING_IN_LIST =
"for (java.lang.String element : list) {" +
"\nfor (java.lang.String anotherElement : anotherList) {" +
"\nnew java.lang.String();" +
"\n};" +
"\n}";
public static final String FOREACH_RESULT_KEYSET_LOOP =
"for (java.lang.Object key : map.keySet()) {" +
"\n}";
public static final String FOREACH_RESULT_LITERAL_STRING_ARRAY =
"for (java.lang.String s : new java.lang.String[] {\"s1\", \"s2\"}) {" +
"\ns.getBytes();" +
"\n}";
}
=======
" for (java.lang.String element : list) {" +
"\n}";
public static final String FOREACH_RESULT_STRING_IN_ARRAY_ONE_STATEMENT =
" for (java.lang.String element : list) {" +
" \nnew java.lang.String();" +
"\n}";
public static final String FOREACH_RESULT_OBJECT_IN_LIST_TWO_STATEMENTS =
" for (java.lang.Object element : list) {" +
" \nnew java.lang.String();" +
" \nnew java.lang.Object();" +
"\n}";
public static final String FOREACH_RESULT_OBJECT_IN_LIST =
" for (java.lang.Object element : list) {" +
"\n}";
public static final String FOREACH_RESULT_NESTED_STRING_IN_LIST =
" for (java.lang.String element : list) {" +
" \nfor (java.lang.String anotherElement : anotherList) {" +
" \nnew java.lang.String();" +
" \n};" +
"\n}";
public static final String FOREACH_RESULT_KEYSET_LOOP =
" for (java.lang.Object key : map.keySet()) {" +
"\n}";
public static final String FOREACH_RESULT_LITERAL_STRING_ARRAY =
" for (java.lang.String s : new java.lang.String[] {\"s1\", \"s2\"}) {" +
" \ns.getBytes();" +
"\n}";
}
>>>>>>> 8c50466c8e86bd116feed5b076fe660a1ad9c551 |
| Solution content |
|---|
public interface LoopBuilderTestResult {
public static final String FOREACH_RESULT_STRING_IN_LIST =
" for (java.lang.String element : list) {" +
"\n}";
public static final String FOREACH_RESULT_STRING_IN_ARRAY_ONE_STATEMENT =
" for (java.lang.String element : list) {" +
" \nnew java.lang.String();" +
"\n}";
public static final String FOREACH_RESULT_OBJECT_IN_LIST_TWO_STATEMENTS =
" for (java.lang.Object element : list) {" +
" \nnew java.lang.String();" +
" \nnew java.lang.Object();" +
"\n}";
public static final String FOREACH_RESULT_OBJECT_IN_LIST =
" for (java.lang.Object element : list) {" +
"\n}";
public static final String FOREACH_RESULT_NESTED_STRING_IN_LIST =
" for (java.lang.String element : list) {" +
" \nfor (java.lang.String anotherElement : anotherList) {" +
" \nnew java.lang.String();" +
" \n};" +
"\n}";
public static final String FOREACH_RESULT_KEYSET_LOOP =
" for (java.lang.Object key : map.keySet()) {" +
"\n}";
public static final String FOREACH_RESULT_LITERAL_STRING_ARRAY =
" for (java.lang.String s : new java.lang.String[] {\"s1\", \"s2\"}) {" +
" \ns.getBytes();" +
"\n}";
} |
| File |
|---|
| LoopBuilderTestResult.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Attribute |
| Chunk |
|---|
| Conflicting content |
|---|
try {
ctx = StatementBuilder.create().addVariable("n", Integer.class, "abc").getContext();
fail("Expected InvalidTypeException");
<<<<<<< HEAD
}
catch (InvalidTypeException ive) {
//expected
=======
} catch (InvalidTypeException ive) {
// expected
>>>>>>> 8c50466c8e86bd116feed5b076fe660a1ad9c551
assertTrue(ive.getCause() instanceof NumberFormatException);
}
} |
| Solution content |
|---|
try {
ctx = StatementBuilder.create().addVariable("n", Integer.class, "abc").getContext();
fail("Expected InvalidTypeException");
}
catch (InvalidTypeException ive) {
// expected
assertTrue(ive.getCause() instanceof NumberFormatException);
}
} |
| File |
|---|
| StatementBuilderTest.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Catch clause |
| Comment |
| Chunk |
|---|
| Conflicting content |
|---|
public void testCreateAndInitializeArray() {
try {
StatementBuilder.create().newArray(Annotation.class)
<<<<<<< HEAD
.initialize("1", "2").toJavaString();
=======
.initialize("1", "2")
.toJavaString();
>>>>>>> 8c50466c8e86bd116feed5b076fe660a1ad9c551
fail("Expected InvalidTypeException");
}
catch (InvalidTypeException oose) { |
| Solution content |
|---|
public void testCreateAndInitializeArray() {
try {
StatementBuilder.create().newArray(Annotation.class)
.initialize("1", "2")
.toJavaString();
fail("Expected InvalidTypeException");
}
catch (InvalidTypeException oose) { |
| File |
|---|
| StatementBuilderTest.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Other |
| Chunk |
|---|
| Conflicting content |
|---|
.initialize(annotation1, annotation2)
.toJavaString();
<<<<<<< HEAD
assertEquals("new java.lang.annotation.Annotation[] {" +
"new java.lang.annotation.Annotation() {\n" +
"public java.lang.Class annotationType() {\n" +
"return javax.inject.Inject.class;\n" +
"}\n" +
"}\n" +
",new java.lang.annotation.Annotation() {\n" +
"public java.lang.Class annotationType() {\n" +
"return javax.annotation.PostConstruct.class;\n" +
"}\n" +
"}\n" +
"}", s);
=======
assertEquals("new java.lang.annotation.Annotation[]{" +
"new java.lang.annotation.Annotation() {\n" +
" public java.lang.Class annotationType() {\n" +
" return javax.inject.Inject.class;\n" +
" }\n" +
"}\n" +
",new java.lang.annotation.Annotation() {\n" +
" public java.lang.Class annotationType() {\n" +
" return javax.annotation.PostConstruct.class;\n" +
" }\n" +
" }\n" +
"}", s);
>>>>>>> 8c50466c8e86bd116feed5b076fe660a1ad9c551
}
@Test |
| Solution content |
|---|
" }\n" +
"}", s);
.initialize(annotation1, annotation2)
.toJavaString();
assertEquals("new java.lang.annotation.Annotation[]{" +
"new java.lang.annotation.Annotation() {\n" +
" public java.lang.Class annotationType() {\n" +
" return javax.inject.Inject.class;\n" +
" }\n" +
"}\n" +
",new java.lang.annotation.Annotation() {\n" +
" public java.lang.Class annotationType() {\n" +
" return javax.annotation.PostConstruct.class;\n" +
" }\n" +
}
@Test |
| File |
|---|
| StatementBuilderTest.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
public void testCreateAndInitializeMultiDimensionalArray() {
String s = StatementBuilder.create().newArray(Integer.class)
<<<<<<< HEAD
.initialize(new Integer[][]{{1, 2}, {3, 4}})
.toJavaString();
=======
.initialize(new Integer[][] { { 1, 2 }, { 3, 4 } })
.toJavaString();
>>>>>>> 8c50466c8e86bd116feed5b076fe660a1ad9c551
assertEquals("Failed to generate two dimensional array", "new java.lang.Integer[][]{{1,2},{3,4}}", s);
|
| Solution content |
|---|
public void testCreateAndInitializeMultiDimensionalArray() {
String s = StatementBuilder.create().newArray(Integer.class)
.initialize(new Integer[][]{{1, 2}, {3, 4}})
.toJavaString();
assertEquals("Failed to generate two dimensional array", "new java.lang.Integer[][]{{1,2},{3,4}}", s);
|
| File |
|---|
| StatementBuilderTest.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
assertEquals("Failed to generate two dimensional array", "new java.lang.Integer[][]{{1,2},{3,4}}", s);
s = StatementBuilder.create().newArray(String.class)
<<<<<<< HEAD
.initialize(new Statement[][]{
{StatementBuilder.create().invokeStatic(Integer.class, "toString", 1),
StatementBuilder.create().invokeStatic(Integer.class, "toString", 2)},
{StatementBuilder.create().invokeStatic(Integer.class, "toString", 3),
StatementBuilder.create().invokeStatic(Integer.class, "toString", 4)}})
.toJavaString();
assertEquals("Failed to generate two dimensional array using statements",
"new java.lang.String[][] {{java.lang.Integer.toString(1),java.lang.Integer.toString(2)}," +
"{java.lang.Integer.toString(3),java.lang.Integer.toString(4)}}", s);
s = StatementBuilder.create().newArray(String.class)
.initialize(new String[][][]{{{"1", "2"}, {"a", "b"}}, {{"3", "4"}, {"b", "c"}}})
.toJavaString();
assertEquals("Failed to generate three dimensional array",
"new java.lang.String[][][] {{{\"1\",\"2\"},{\"a\",\"b\"}},{{\"3\",\"4\"},{\"b\",\"c\"}}}", s);
=======
.initialize(new Statement[][] {
{ StatementBuilder.create().invokeStatic(Integer.class, "toString", 1),
StatementBuilder.create().invokeStatic(Integer.class, "toString", 2) },
{ StatementBuilder.create().invokeStatic(Integer.class, "toString", 3),
StatementBuilder.create().invokeStatic(Integer.class, "toString", 4) } })
.toJavaString();
assertEquals("Failed to generate two dimensional array using statements",
"new java.lang.String[][]{{java.lang.Integer.toString(1),java.lang.Integer.toString(2)}," +
"{java.lang.Integer.toString(3),java.lang.Integer.toString(4)}}", s);
s = StatementBuilder.create().newArray(String.class)
.initialize(new Object[][] {
{ StatementBuilder.create().invokeStatic(Integer.class, "toString", 1), "2" },
{ StatementBuilder.create().invokeStatic(Integer.class, "toString", 3), "4" } })
.toJavaString();
assertEquals("Failed to generate two dimensional array using statements and objects",
"new java.lang.String[][]{{java.lang.Integer.toString(1),\"2\"}," +
"{java.lang.Integer.toString(3),\"4\"}}", s);
s = StatementBuilder.create().newArray(String.class)
.initialize(new String[][][] { { { "1", "2" }, { "a", "b" } }, { { "3", "4" }, { "b", "c" } } })
.toJavaString();
assertEquals("Failed to generate three dimensional array",
"new java.lang.String[][][]{{{\"1\",\"2\"},{\"a\",\"b\"}},{{\"3\",\"4\"},{\"b\",\"c\"}}}", s);
>>>>>>> 8c50466c8e86bd116feed5b076fe660a1ad9c551
}
} |
| Solution content |
|---|
assertEquals("Failed to generate two dimensional array", "new java.lang.Integer[][]{{1,2},{3,4}}", s);
s = StatementBuilder.create().newArray(String.class)
.initialize(new Statement[][]{
{StatementBuilder.create().invokeStatic(Integer.class, "toString", 1),
StatementBuilder.create().invokeStatic(Integer.class, "toString", 2)},
{StatementBuilder.create().invokeStatic(Integer.class, "toString", 3),
StatementBuilder.create().invokeStatic(Integer.class, "toString", 4)}})
.toJavaString();
assertEquals("Failed to generate two dimensional array using statements",
"new java.lang.String[][]{{java.lang.Integer.toString(1),java.lang.Integer.toString(2)}," +
"{java.lang.Integer.toString(3),java.lang.Integer.toString(4)}}", s);
s = StatementBuilder.create().newArray(String.class)
.initialize(new Object[][]{
{StatementBuilder.create().invokeStatic(Integer.class, "toString", 1), "2"},
{StatementBuilder.create().invokeStatic(Integer.class, "toString", 3), "4"}})
.toJavaString();
assertEquals("Failed to generate two dimensional array using statements and objects",
"new java.lang.String[][]{{java.lang.Integer.toString(1),\"2\"}," +
"{java.lang.Integer.toString(3),\"4\"}}", s);
s = StatementBuilder.create().newArray(String.class)
.initialize(new String[][][]{{{"1", "2"}, {"a", "b"}}, {{"3", "4"}, {"b", "c"}}})
.toJavaString();
assertEquals("Failed to generate three dimensional array",
"new java.lang.String[][][]{{{\"1\",\"2\"},{\"a\",\"b\"}},{{\"3\",\"4\"},{\"b\",\"c\"}}}", s);
}
} |
| File |
|---|
| StatementBuilderTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Variable |