java suppresswarnings unchecked

Solutions on MaxInterview for java suppresswarnings unchecked by the best coders in the world

showing results for - "java suppresswarnings unchecked"
Martín
15 Apr 2016
1public class Machine {
2    private List versions;
3
4    @SuppressWarnings("unchecked")
5    // or
6    @SuppressWarnings({"unchecked"})
7    public void addVersion(String version) {
8        versions.add(version);
9    }
10}
similar questions
queries leading to this page
java suppresswarnings unchecked