Skip to content

Commit

Permalink
Merge pull request #674 from ywy2090/release-2.5.1
Browse files Browse the repository at this point in the history
TypeEncode to public
  • Loading branch information
ywy2090 authored Jul 1, 2020
2 parents 88374be + 796bf09 commit ec3b7a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/fisco/bcos/web3j/abi/TypeDecoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class TypeDecoder {
static final int MAX_BYTE_LENGTH_FOR_HEX_STRING = Type.MAX_BYTE_LENGTH << 1;

@SuppressWarnings("unchecked")
static <T extends Type> T decode(String input, int offset, Class<T> type) {
public static <T extends Type> T decode(String input, int offset, Class<T> type) {
if (NumericType.class.isAssignableFrom(type)) {
return (T) decodeNumeric(input.substring(offset), (Class<NumericType>) type);
} else if (Address.class.isAssignableFrom(type)) {
Expand Down

0 comments on commit ec3b7a9

Please sign in to comment.