链接到使用类型参数的方法

建议以下示例。请注意Javadoc部分中@link的使用。当我在该示例上运行Jacadoc时,我得到

    [WARNING] src\main\java\demo\Walker.java:32: warning - Tag @link: can't find startFoo(Context) in demo.Walker.Visitor
    [WARNING] src\main\java\demo\Walker.java:26: warning - Tag @link: can't find endFoo(Context) in demo.Walker.Visitor

我尝试链接到#startFoo(C)和#endFoo(C),但没有成功。谁能告诉我,如何解决?

谢谢,

约臣

    /**
     * 
     */
    package demo;

    /**
     * 
     */
    public abstract class Walker {
        /**
         * The context object may be used by the visitor to store temporary data.
         */
        public static class Context {       
        }

        /**
         * @param <C> The context object may be used by the visitor to store temporary data.
         */
        public interface Visitor<C extends MyVisitor.Context> {
            /**
             * Called in case of a foo event. After processing the event,
             * {@link #endFoo(Context)} will be invoked.
             * @param pContext The context object.
             */
             public void startFoo(C pContext);

            /** Called if a foo event has been processed. A call to
             * {@link #startFoo(Context)} has occurred before.
             * @param pContext The context object.
             */
            public void endFoo(C pContext);
        }
    }
评论