< prev index next >

test/jdk/javadoc/doclet/testTypeAnnotations/typeannos/Wildcards.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 37,50 **** MyList<? extends @WldA MyList<? super @WldB("m") String>> complex() { return null; } } class BoundWithValue { void wcExtends(MyList<? extends @WldB("m") String> l) { } ! void wcSuper(MyList<? super @WldB(value="m") String> l) { } MyList<? extends @WldB("m") String> returnWcExtends() { return null; } ! MyList<? super @WldB(value="m") String> returnWcSuper() { return null; } MyList<? extends @WldB("m") MyList<? super @WldB("m") String>> complex() { return null; } } class SelfTest { void wcExtends(MyList<@WldA ?> l) { } --- 37,50 ---- MyList<? extends @WldA MyList<? super @WldB("m") String>> complex() { return null; } } class BoundWithValue { void wcExtends(MyList<? extends @WldB("m") String> l) { } ! void wcSuper(MyList<? super @WldB("m") String> l) { } MyList<? extends @WldB("m") String> returnWcExtends() { return null; } ! MyList<? super @WldB("m") String> returnWcSuper() { return null; } MyList<? extends @WldB("m") MyList<? super @WldB("m") String>> complex() { return null; } } class SelfTest { void wcExtends(MyList<@WldA ?> l) { }
*** 55,68 **** MyList<@WldA ? extends @WldA MyList<@WldB("m") ?>> complex() { return null; } } class SelfWithValue { void wcExtends(MyList<@WldB("m") ?> l) { } ! void wcSuper(MyList<@WldB(value="m") ?> l) { } MyList<@WldB("m") ?> returnWcExtends() { return null; } ! MyList<@WldB(value="m") ?> returnWcSuper() { return null; } MyList<@WldB("m") ? extends MyList<@WldB("m") ? super String>> complex() { return null; } } class MyList<K> { } --- 55,68 ---- MyList<@WldA ? extends @WldA MyList<@WldB("m") ?>> complex() { return null; } } class SelfWithValue { void wcExtends(MyList<@WldB("m") ?> l) { } ! void wcSuper(MyList<@WldB("m") ?> l) { } MyList<@WldB("m") ?> returnWcExtends() { return null; } ! MyList<@WldB("m") ?> returnWcSuper() { return null; } MyList<@WldB("m") ? extends MyList<@WldB("m") ? super String>> complex() { return null; } } class MyList<K> { }
< prev index next >