blob: 8507e792a1352a38742f4ce1e0972b05d826654e [file] [log] [blame]
Mads Ager418d1ca2017-05-22 09:35:49 +02001// Copyright (c) 2017, 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
5public class InnerAccessors {
6
7 private static void privateMethod() {
8 System.out.println("I'm a private method");
9 }
10
11 static class Inner {
12 public void callPrivateMethodInOuterClass() {
13 privateMethod();
14 }
15 }
16
17 public static void main(String[] args) {
18 new Inner().callPrivateMethodInOuterClass();
19 }
20
21}