Home | History | Annotate | Download | only in shaking10
      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 shaking10;
      5 
      6 import shakinglib.HasAFoo;
      7 import shakinglib.HasAGetter;
      8 
      9 public class HasAFooImpl implements HasAFoo {
     10 
     11   @Override
     12   public HasAGetter foo() {
     13     return new ReturnsOne();
     14   }
     15 
     16   public int bar() {
     17     return 0;
     18   }
     19 
     20   private static class ReturnsOne implements HasAGetter {
     21 
     22     @Override
     23     public int getIt() {
     24       return 1;
     25     }
     26   }
     27 }
     28