• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2016, 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 package shaking3;
5 
6 @shaking3.UsedByReflection
7 class A implements Comparable<A>, AnInterfaceWithATag {
8 
9   @shaking3.RandomTag
A()10   public A() {
11     // Intentionally left empty.
12   }
13 
14   @Override
toString()15   public String toString() {
16     return "A";
17   }
18 
unused()19   public void unused() { }
20 
21   @Override
compareTo(A other)22   public int compareTo(A other) {
23     if (other == this) {
24       return 0;
25     }
26     return 1;
27   }
28 }
29