Denis Vnukov | b137054 | 2018-08-15 08:26:25 -0700 | [diff] [blame] | 1 | // Copyright (c) 2018, the R8 project authors. Please see the AUTHORS file |
| 2 | // for details. All rights reserved. Use of this source code is governed by a |
| 3 | // BSD-style license that can be found in the LICENSE file. |
| 4 | |
| 5 | package interfacedispatchclasses; |
| 6 | |
| 7 | import java.util.Comparator; |
| 8 | |
| 9 | public class Caller2 { |
| 10 | public static synchronized void run(boolean doCall) { |
| 11 | System.out.println("Caller2::run(boolean)"); |
| 12 | if (doCall) { |
| 13 | Comparator<String> comparator = Comparator.naturalOrder(); |
| 14 | System.out.println(comparator.compare("B", "C")); |
| 15 | System.out.println(comparator.compare("A", "B")); |
| 16 | System.out.println(comparator.compare("B", "B")); |
| 17 | } |
| 18 | } |
| 19 | } |