@@ -71,14 +71,20 @@ public class TypeDecoder {
71
71
static final int MAX_BYTE_LENGTH_FOR_HEX_STRING = Type .MAX_BYTE_LENGTH << 1 ;
72
72
73
73
public static Type instantiateType (String solidityType , Object value )
74
- throws InvocationTargetException , NoSuchMethodException , InstantiationException ,
75
- IllegalAccessException , ClassNotFoundException {
74
+ throws InvocationTargetException ,
75
+ NoSuchMethodException ,
76
+ InstantiationException ,
77
+ IllegalAccessException ,
78
+ ClassNotFoundException {
76
79
return instantiateType (makeTypeReference (solidityType ), value );
77
80
}
78
81
79
82
public static Type instantiateType (TypeReference ref , Object value )
80
- throws NoSuchMethodException , IllegalAccessException , InvocationTargetException ,
81
- InstantiationException , ClassNotFoundException {
83
+ throws NoSuchMethodException ,
84
+ IllegalAccessException ,
85
+ InvocationTargetException ,
86
+ InstantiationException ,
87
+ ClassNotFoundException {
82
88
Class rc = ref .getClassType ();
83
89
if (Array .class .isAssignableFrom (rc )) {
84
90
return instantiateArrayType (ref , value );
@@ -183,8 +189,11 @@ static <T extends NumericType> int getTypeLength(Class<T> type) {
183
189
}
184
190
185
191
static Type instantiateArrayType (TypeReference ref , Object value )
186
- throws NoSuchMethodException , IllegalAccessException , InvocationTargetException ,
187
- InstantiationException , ClassNotFoundException {
192
+ throws NoSuchMethodException ,
193
+ IllegalAccessException ,
194
+ InvocationTargetException ,
195
+ InstantiationException ,
196
+ ClassNotFoundException {
188
197
List values ;
189
198
if (value instanceof List ) {
190
199
values = (List ) value ;
@@ -218,8 +227,11 @@ static Type instantiateArrayType(TypeReference ref, Object value)
218
227
}
219
228
220
229
static Type instantiateAtomicType (Class <?> referenceClass , Object value )
221
- throws NoSuchMethodException , IllegalAccessException , InvocationTargetException ,
222
- InstantiationException , ClassNotFoundException {
230
+ throws NoSuchMethodException ,
231
+ IllegalAccessException ,
232
+ InvocationTargetException ,
233
+ InstantiationException ,
234
+ ClassNotFoundException {
223
235
Object constructorArg = null ;
224
236
if (NumericType .class .isAssignableFrom (referenceClass )) {
225
237
constructorArg = asBigInteger (value );
0 commit comments