< prev index next >

test/langtools/tools/javac/patterns/BindingsTest1.java

Print this page
rev 57117 : [mq]: 8234922


 129 
 130             s.length();
 131         }
 132 
 133         {
 134             L6: for ( ;!(o1 instanceof String s); ) {
 135 
 136             }
 137 
 138             s.length();
 139         }
 140 
 141         {
 142             L7: do {
 143 
 144             } while (!(o1 instanceof String s));
 145 
 146             s.length();
 147         }
 148 
























 149         if (o1 instanceof String s) {
 150             Runnable r1 = new Runnable() {
 151                 @Override
 152                 public void run() {
 153                     s.length();
 154                 }
 155             };
 156             r1.run();
 157             Runnable r2 = () -> {
 158                 s.length();
 159             };
 160             r2.run();
 161             String s2 = s;
 162         }
 163 
 164         System.out.println("BindingsTest1 complete");
 165     }
 166 }


 129 
 130             s.length();
 131         }
 132 
 133         {
 134             L6: for ( ;!(o1 instanceof String s); ) {
 135 
 136             }
 137 
 138             s.length();
 139         }
 140 
 141         {
 142             L7: do {
 143 
 144             } while (!(o1 instanceof String s));
 145 
 146             s.length();
 147         }
 148 
 149         {
 150             while (!(o1 instanceof String s)) {
 151                 L8: break L8;
 152             }
 153 
 154             s.length();
 155         }
 156 
 157         {
 158             for ( ;!(o1 instanceof String s); ) {
 159                 L9: break L9;
 160             }
 161 
 162             s.length();
 163         }
 164 
 165         {
 166             do {
 167                 L10: break L10;
 168             } while (!(o1 instanceof String s));
 169 
 170             s.length();
 171         }
 172 
 173         if (o1 instanceof String s) {
 174             Runnable r1 = new Runnable() {
 175                 @Override
 176                 public void run() {
 177                     s.length();
 178                 }
 179             };
 180             r1.run();
 181             Runnable r2 = () -> {
 182                 s.length();
 183             };
 184             r2.run();
 185             String s2 = s;
 186         }
 187 
 188         System.out.println("BindingsTest1 complete");
 189     }
 190 }
< prev index next >