summaryrefslogtreecommitdiff
path: root/tests/038-inner-null/src/Main.java
blob: acc87640b85bd01f6cc7f87576688635ec667eb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2008 The Android Open Source Project

public class Main {
    public static void main(String[] args) {
        Special special = new Special();
        special.callInner();
    }

    public static class Special {
        Blort mBlort = null;

        Special() {
            System.out.println("new Special()");
        }

        public void callInner() {
            mBlort.repaint();
        }
    }

    private class Blort {
        public void repaint() {
            System.out.println("shouldn't see this");
        }
    }

}