| 11 | @Override public int value() { return i; } |
| 12 | } |
| 13 | protected static final class ParcelDestination |
| 14 | implements Destination { |
| 15 | private String label; |
| 16 | private ParcelDestination(String whereTo) { |
| 17 | label = whereTo; |
| 18 | } |
| 19 | @Override |
| 20 | public String readLabel() { return label; } |
| 21 | // Nested classes can contain other static elements: |
| 22 | public static void f() {} |
| 23 | static int x = 10; |
| 24 | static class AnotherLevel { |
| 25 | public static void f() {} |
| 26 | static int x = 10; |
| 27 | } |
| 28 | } |
| 29 | public static Destination destination(String s) { |
| 30 | return new ParcelDestination(s); |
| 31 | } |
nothing calls this directly
no outgoing calls
no test coverage detected