Roll android_tools support library to 25.1.0
[android_tools.git] / sdk / sources / android-23 / com / android / tools / layoutlib / create / dataclass / OuterClass.java
blobf083e76d995c6ea038f7f45292bc3975ffac6e15
1 /*
2 * Copyright (C) 2011 The Android Open Source Project
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package com.android.tools.layoutlib.create.dataclass;
19 import com.android.tools.layoutlib.create.DelegateClassAdapterTest;
21 /**
22 * Test class with an inner class.
24 * Used by {@link DelegateClassAdapterTest}.
26 public class OuterClass {
27 private int mOuterValue = 1;
28 public OuterClass() {
31 // Outer.get returns 1 + a + b
32 // Note: it's good to have a long or double for testing parameters since they take
33 // 2 slots in the stack/locals maps.
34 public int get(int a, long b) {
35 return mOuterValue + a + (int) b;
38 public class InnerClass {
39 public InnerClass() {
42 // Inner.get returns 2 + 1 + a + b
43 public int get(int a, long b) {
44 return 2 + mOuterValue + a + (int) b;
48 @SuppressWarnings("unused")
49 private String privateMethod() {
50 return "outerPrivateMethod";