langtools/test/tools/javac/annotations/repeatingAnnotations/combo/DeprecatedAnnoCombo.java
author akulyakh
Thu, 21 May 2015 11:41:04 -0700
changeset 30730 d3ce7619db2c
parent 15356 cf312dc54c60
permissions -rw-r--r--
8076543: Add @modules as needed to the langtools tests Reviewed-by: jjg, shurailine
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14451
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
     1
/*
30730
d3ce7619db2c 8076543: Add @modules as needed to the langtools tests
akulyakh
parents: 15356
diff changeset
     2
 * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
14451
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
     4
 *
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
     7
 * published by the Free Software Foundation.
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
     8
 *
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    13
 * accompanied this code).
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    14
 *
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    18
 *
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    21
 * questions.
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    22
 */
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    23
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    24
/**
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    25
 * @test
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    26
 * @bug      8002157
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    27
 * @author   sogoel
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    28
 * @summary  Combo test to check for usage of Deprecated
30730
d3ce7619db2c 8076543: Add @modules as needed to the langtools tests
akulyakh
parents: 15356
diff changeset
    29
 * @modules jdk.compiler
14451
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    30
 * @build    Helper
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    31
 * @compile  DeprecatedAnnoCombo.java
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    32
 * @run main DeprecatedAnnoCombo
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    33
 */
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    34
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    35
import java.util.List;
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    36
import javax.tools.Diagnostic;
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    37
import javax.tools.DiagnosticCollector;
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    38
import javax.tools.JavaFileObject;
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    39
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    40
/*
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    41
 * Generate test src for use of @Deprecated on base anno
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    42
 * or container anno or on both. In all cases, test src should compile and a
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    43
 * warning should be generated. Repeating annotations used only on class for
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    44
 * these generated test src.
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    45
 */
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    46
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    47
public class DeprecatedAnnoCombo extends Helper {
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    48
    static int errors = 0;
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    49
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    50
    enum TestCases {
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    51
        DeprecatedonBoth,
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    52
        DeprecatedonContainer,
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    53
        DeprecatedonBase;
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    54
    }
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    55
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    56
    public static void main(String[] args) throws Exception {
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    57
        new DeprecatedAnnoCombo().runTest();
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    58
    }
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    59
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    60
    public void runTest() throws Exception {
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    61
        boolean ok = false;
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    62
        int testCtr = 0;
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    63
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    64
        for (TestCases clName : TestCases.values()) {
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    65
            testCtr++;
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    66
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    67
            // Create test source content
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    68
            String contents = getContent(clName.toString());
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    69
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    70
            // Compile the generated source file
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    71
            DiagnosticCollector<JavaFileObject> diagnostics =
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    72
                    new DiagnosticCollector<JavaFileObject>();
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    73
            ok = compileCode(clName.toString(), contents, diagnostics);
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    74
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    75
            String errorKey1 = "compiler.note.deprecated.filename";
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    76
            String errorKey2 = "compiler.note.deprecated.recompile";
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    77
            List<Diagnostic<? extends JavaFileObject>> diags = diagnostics.getDiagnostics();
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    78
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    79
            //Check for deprecated warnings
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    80
            if (ok) {
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    81
                if (diags.size() == 0) {
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    82
                    error("Did not get any warnings for @Deprecated usage");
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    83
                } else {
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    84
                    for (Diagnostic<?> d : diags) {
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    85
                        if (d.getKind() == Diagnostic.Kind.NOTE) {
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    86
                            if (d.getCode().contains(errorKey1)
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    87
                                || d.getCode().contains(errorKey2)) {
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    88
                                System.out.println("TestCase =" + clName + " passed as expected");
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    89
                            } else {
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    90
                                error("TestCase =" + clName + " did not give correct warnings" +
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    91
                                    "Expected warning keys: " +
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    92
                                    "errorKey1 = " + errorKey1 +
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    93
                                    "errorKey2 = " + errorKey2 +
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    94
                                    "actualErrorKey = " + d.getCode(), contents);
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    95
                            }
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    96
                        } else {
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    97
                            error("Diagnostic Kind is incorrect, expected = " +
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    98
                                 Diagnostic.Kind.NOTE + "actual = " + d.getKind(), contents);
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
    99
                        }
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   100
                    }
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   101
                }
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   102
            } else {
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   103
                error("TestCase =" + clName + " did not compile as expected", contents);
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   104
            }
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   105
        }
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   106
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   107
        System.out.println("Total number of tests run: " + testCtr);
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   108
        System.out.println("Total number of errors: " + errors);
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   109
        if (errors > 0)
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   110
            throw new Exception(errors + " errors found");
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   111
    }
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   112
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   113
    private String getContent(String className) {
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   114
        StringBuilder annoData = new StringBuilder();
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   115
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   116
        switch(className) {
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   117
        case "DeprecatedonBoth":
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   118
            annoData.append(Helper.ContentVars.DEPRECATED.getVal())
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   119
                    .append(Helper.ContentVars.CONTAINER.getVal())
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   120
                    .append(Helper.ContentVars.DEPRECATED.getVal())
15356
cf312dc54c60 8006119: update javac to follow latest spec for repeatable annotations
jjg
parents: 14451
diff changeset
   121
                    .append(Helper.ContentVars.REPEATABLE.getVal())
14451
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   122
                    .append(Helper.ContentVars.BASE.getVal());
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   123
            break;
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   124
        case "DeprecatedonBase":
15356
cf312dc54c60 8006119: update javac to follow latest spec for repeatable annotations
jjg
parents: 14451
diff changeset
   125
            annoData.append(Helper.ContentVars.CONTAINER.getVal())
14451
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   126
                    .append(Helper.ContentVars.DEPRECATED.getVal())
15356
cf312dc54c60 8006119: update javac to follow latest spec for repeatable annotations
jjg
parents: 14451
diff changeset
   127
                    .append(Helper.ContentVars.REPEATABLE.getVal())
14451
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   128
                    .append(Helper.ContentVars.BASE.getVal());
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   129
            break;
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   130
        case "DeprecatedonContainer":
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   131
            annoData.append(Helper.ContentVars.DEPRECATED.getVal())
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   132
                    .append(Helper.ContentVars.CONTAINER.getVal())
15356
cf312dc54c60 8006119: update javac to follow latest spec for repeatable annotations
jjg
parents: 14451
diff changeset
   133
                    .append(Helper.ContentVars.REPEATABLE.getVal())
14451
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   134
                    .append(Helper.ContentVars.BASE.getVal());
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   135
            break;
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   136
        }
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   137
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   138
        String contents = Helper.ContentVars.IMPORTCONTAINERSTMTS.getVal()
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   139
                          + Helper.ContentVars.IMPORTDEPRECATED.getVal()
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   140
                          + annoData
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   141
                          + Helper.ContentVars.REPEATABLEANNO.getVal()
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   142
                          + "\nclass "+ className + "{}";
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   143
        return contents;
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   144
    }
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   145
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   146
    private void error(String msg, String... contents) {
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   147
        System.out.println("error: " + msg);
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   148
        errors++;
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   149
        if (contents.length == 1) {
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   150
            System.out.println("Contents = " + contents[0]);
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   151
        }
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   152
    }
c18762e096ae 8002157: Write combo compiler tests for repeating annotations for JDK8
jjg
parents:
diff changeset
   153
}