I need to adopt code that was created using java 1.6 for java 1.4 JVM.
What is the best way to change generics usage that is missing in java 1.4? Actually I need to change only this expression:
List<byte[]>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Given that Java 1.4 has no generics, the only thing you can do is use the raw type here
To retrieve, casting is required, e.g.
Now you see the main benefit that generics bring 😉