Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Java/Openjdk/test/langtools/tools/doclint/   (Sun/Oracle ©)  Datei vom 13.11.2022 mit Größe 950 B image not shown  

Quelle  AnonClassTest.java   Sprache: JAVA

 
/*
 * @test /nodynamiccopyright/
 * @modules jdk.javadoc/jdk.javadoc.internal.doclint
 * @build DocLintTester
 * @run main DocLintTester -Xmsgs:-missing AnonClassTest.java
 * @run main DocLintTester -Xmsgs:missing -ref AnonClassTest.out AnonClassTest.java
 */


/** Class comment. */
public enum AnonClassTest {

    /**
     * E1 comment.
     * This member uses an anonymous class, which should not trigger a warning.
     */

    E1 {
        // no comment: should give warning
        int field;

        // no comment: should give warning
        void m() { }

        // no comment required: should not give warning
        @java.lang.Override
        public void m1() { }
    },

    // This member also uses an anonymous class,
    // but there should only be a single warning for the member itself.
    E2 { },

    /** E3 comment. This member does not use an anonymous class. */
    E3;

    /** Method comment. */
    public void m1() { }
}

100%


¤ Dauer der Verarbeitung: 0.14 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung ist noch experimentell.