langtools/test/com/sun/javadoc/testLinkTaglet/pkg/C.java
changeset 10203 cca843a7d258
parent 5520 86e4b9a9da40
equal deleted inserted replaced
10202:f32c7f2c2219 10203:cca843a7d258
     1 /*
     1 /*
     2  * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    32  * Unqualified Link: {@link #method(InnerC, InnerC2)}.<br/>
    32  * Unqualified Link: {@link #method(InnerC, InnerC2)}.<br/>
    33  */
    33  */
    34 public class C {
    34 public class C {
    35 
    35 
    36     public InnerC MEMBER = new InnerC();
    36     public InnerC MEMBER = new InnerC();
       
    37     /**
       
    38      *  A red herring inner class to confuse the matching, thus to
       
    39      *  ensure the right one is linked.
       
    40      */
       
    41     public class RedHerringInnerC {}
    37 
    42 
    38     /**
    43     /**
    39      * Link to member in outer class: {@link #MEMBER} <br/>
    44      * Link to member in outer class: {@link #MEMBER} <br/>
    40      * Link to member in inner class: {@link InnerC2#MEMBER2} <br/>
    45      * Link to member in inner class: {@link InnerC2#MEMBER2} <br/>
    41      * Link to another inner class: {@link InnerC2}
    46      * Link to another inner class: {@link InnerC2}