test/langtools/tools/javac/api/TestGetElementReferenceData.java
changeset 59285 7799a51dbe30
parent 47216 71c04702a3d5
equal deleted inserted replaced
59284:88502b1cf76f 59285:7799a51dbe30
     1 /*
     1 /*
     2  * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2019, 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.
    33         sb/*getElement:LOCAL_VARIABLE:sb*/.append/*getElement:METHOD:java.lang.StringBuilder.append(int)*/(0);
    33         sb/*getElement:LOCAL_VARIABLE:sb*/.append/*getElement:METHOD:java.lang.StringBuilder.append(int)*/(0);
    34         sb.reverse( /*getElement:METHOD:java.lang.StringBuilder.reverse()*/);
    34         sb.reverse( /*getElement:METHOD:java.lang.StringBuilder.reverse()*/);
    35         java.util.List< /*getElement:INTERFACE:java.util.List*/ String> l;
    35         java.util.List< /*getElement:INTERFACE:java.util.List*/ String> l;
    36         utility/*getElement:METHOD:test.TestGetElementReferenceData.Base.utility()*/();
    36         utility/*getElement:METHOD:test.TestGetElementReferenceData.Base.utility()*/();
    37         target(TestGetElementReferenceData :: test/*getElement:METHOD:test.TestGetElementReferenceData.test()*/);
    37         target(TestGetElementReferenceData :: test/*getElement:METHOD:test.TestGetElementReferenceData.test()*/);
       
    38         Object/*getElement:CLASS:java.lang.Object*/ o = null;
       
    39         if (o/*getElement:LOCAL_VARIABLE:o*/ instanceof String/*getElement:CLASS:java.lang.String*/ str/*getElement:LOCAL_VARIABLE:str*/) ;
    38     }
    40     }
    39     private static void target(Runnable r) { r.run(); }
    41     private static void target(Runnable r) { r.run(); }
    40     public static class Base {
    42     public static class Base {
    41         public static void utility() {}
    43         public static void utility() {}
    42     }
    44     }