blob: 58a887fcc953cc02090061e959a92871ddcfa421 [file] [log] [blame]
Denis Vnukovb1370542018-08-15 08:26:25 -07001// 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
5package interfacedispatchclasses;
6
7import java.util.Comparator;
8
9public 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}