langtools/test/tools/javac/lambda/intersection/IntersectionTargetTypeTest.java
changeset 20249 93f8eae31092
parent 16809 5acfcb821d65
child 22690 86dd707d616a
equal deleted inserted replaced
20248:0c72984b7a4d 20249:93f8eae31092
     1 /*
     1 /*
     2  * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 2013, 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.
   194         }
   194         }
   195         System.out.println("Total check executed: " + checkCount);
   195         System.out.println("Total check executed: " + checkCount);
   196     }
   196     }
   197 
   197 
   198     static List<CastInfo> allCastInfo() {
   198     static List<CastInfo> allCastInfo() {
   199         ListBuffer<CastInfo> buf = ListBuffer.lb();
   199         ListBuffer<CastInfo> buf = new ListBuffer<>();
   200         for (CastKind kind : CastKind.values()) {
   200         for (CastKind kind : CastKind.values()) {
   201             for (TypeKind b1 : TypeKind.values()) {
   201             for (TypeKind b1 : TypeKind.values()) {
   202                 if (kind.nbounds == 1) {
   202                 if (kind.nbounds == 1) {
   203                     buf.append(new CastInfo(kind, b1));
   203                     buf.append(new CastInfo(kind, b1));
   204                     continue;
   204                     continue;