|
What this is
Other links
The source codepackage p; import java.util.Collections; import java.util.Map; class A extends Sup<String> { public A(Map<String, Integer> map) { Map<String, Integer> emptyMap= Collections.emptyMap(/*nada*/); method(emptyMap); method2(emptyMap); method3(emptyMap); new A(emptyMap); super.sup(emptyMap); Map<String, Integer> emptyMap2= emptyMap; emptyMap2= emptyMap; Object o= emptyMap; Map<? extends String, ?> emptyMap3= emptyMap; Integer first= emptyMap.values().iterator().next(); } void method(Map<String, Integer> map) { } void method2(Map<? extends String, ?> map) { } void method3(Object map) { } } class Sup<S> { <A extends S, B> void sup(Map map) {} } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.