I am using this dependency
<!-- https://mvnrepository.com/artifact/org.web3j/core --> <dependency> <groupId>org.web3j</groupId> <artifactId>core</artifactId> <version>4.10.3</version> </dependency> And I have this code:
Function function = new Function( "functionName", List.of(), List.of( new TypeReference<DynamicArray<Uint112>>(){}, new TypeReference<DynamicArray<Uint112>>(){}, new TypeReference<DynamicArray<Uint160>>(){}, new TypeReference<DynamicArray<Uint24>>(){} ) ); //here I receive the warning List<TypeReference<Type>> outputParams = function.getOutputParameters(); At the last line I receive the warning Raw use of parameterized class 'Type'.
The code works perfect and I know what means the warning, but in this specific case I don't know how to fix it.
Someone has any idea how to fix that warning?