Skip to content
Permalink
Browse files

#733 Fix formatting of string blank lines

  • Loading branch information...
xaviarias committed Nov 22, 2018
1 parent a2a2a7a commit d28bcae00f43b027579a13e7bbb537b915d09111
Showing with 17 additions and 18 deletions.
  1. +17 −18 codegen/src/test/java/org/web3j/codegen/SolidityFunctionWrapperTest.java
@@ -336,23 +336,23 @@ public void testBuildFunctionConstantMultiDynamicArrayRawListReturn() throws Exc

//CHECKSTYLE:OFF
String expected =
"public org.web3j.protocol.core.RemoteCall<java.util.List> functionName(java.util.List<java.util.List<java.math.BigInteger>> param) {\n" +
" final org.web3j.abi.datatypes.Function function = new org.web3j.abi.datatypes.Function(FUNC_FUNCTIONNAME, \n" +
" java.util.Arrays.<org.web3j.abi.datatypes.Type>asList(new org.web3j.abi.datatypes.DynamicArray<org.web3j.abi.datatypes.DynamicArray>(\n" +
" org.web3j.abi.datatypes.DynamicArray.class,\n" +
" org.web3j.abi.Utils.typeMap(param, org.web3j.abi.datatypes.DynamicArray.class,\n" +
" org.web3j.abi.datatypes.generated.Uint8.class))), \n" +
" java.util.Arrays.<org.web3j.abi.TypeReference<?>>asList(new org.web3j.abi.TypeReference<org.web3j.abi.datatypes.DynamicArray<org.web3j.abi.datatypes.Address>>() {}));\n" +
" return new org.web3j.protocol.core.RemoteCall<java.util.List>(\n" +
" new java.util.concurrent.Callable<java.util.List>() {\n" +
" @java.lang.Override\n" +
" @java.lang.SuppressWarnings(\"unchecked\")\n" +
" public java.util.List call() throws java.lang.Exception {\n" +
" java.util.List<org.web3j.abi.datatypes.Type> result = (java.util.List<org.web3j.abi.datatypes.Type>) executeCallSingleValueReturn(function, java.util.List.class);\n" +
" return convertToNative(result);\n" +
" }\n" +
" });\n" +
"}\n";
"public org.web3j.protocol.core.RemoteCall<java.util.List> functionName(java.util.List<java.util.List<java.math.BigInteger>> param) {\n"
+ " final org.web3j.abi.datatypes.Function function = new org.web3j.abi.datatypes.Function(FUNC_FUNCTIONNAME, \n"
+ " java.util.Arrays.<org.web3j.abi.datatypes.Type>asList(new org.web3j.abi.datatypes.DynamicArray<org.web3j.abi.datatypes.DynamicArray>(\n"
+ " org.web3j.abi.datatypes.DynamicArray.class,\n"
+ " org.web3j.abi.Utils.typeMap(param, org.web3j.abi.datatypes.DynamicArray.class,\n"
+ " org.web3j.abi.datatypes.generated.Uint8.class))), \n"
+ " java.util.Arrays.<org.web3j.abi.TypeReference<?>>asList(new org.web3j.abi.TypeReference<org.web3j.abi.datatypes.DynamicArray<org.web3j.abi.datatypes.Address>>() {}));\n"
+ " return new org.web3j.protocol.core.RemoteCall<java.util.List>(\n"
+ " new java.util.concurrent.Callable<java.util.List>() {\n"
+ " @java.lang.Override\n"
+ " @java.lang.SuppressWarnings(\"unchecked\")\n"
+ " public java.util.List call() throws java.lang.Exception {\n"
+ " java.util.List<org.web3j.abi.datatypes.Type> result = (java.util.List<org.web3j.abi.datatypes.Type>) executeCallSingleValueReturn(function, java.util.List.class);\n"
+ " return convertToNative(result);\n"
+ " }\n"
+ " });\n"
+ "}\n";
//CHECKSTYLE:ON

assertThat(methodSpec.toString(), is(expected));
@@ -521,7 +521,6 @@ public void testBuildFuncNameConstants() throws Exception {
builder.addFields(solidityFunctionWrapper
.buildFuncNameConstants(Collections.singletonList(functionDefinition)));


//CHECKSTYLE:OFF
String expected =
"class testClass {\n" +

0 comments on commit d28bcae

Please sign in to comment.
You can’t perform that action at this time.