| 1 |
/* |
| 2 |
* Copyright (C) 2012 The Android Open Source Project |
| 3 |
* |
| 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 |
| 7 |
* |
| 8 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 9 |
* |
| 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. |
| 15 |
*/ |
| 16 |
|
| 17 |
package other; |
| 18 |
|
| 19 |
// Class that makes the ProtectedClass sub-classable by classes outside of package other. |
| 20 |
public class PublicClass extends ProtectedClass { |
| 21 |
public boolean otherPublicClassPublicBooleanInstanceField = true; |
| 22 |
public byte otherPublicClassPublicByteInstanceField = -2; |
| 23 |
public char otherPublicClassPublicCharInstanceField = (char)-3; |
| 24 |
public short otherPublicClassPublicShortInstanceField = -4; |
| 25 |
public int otherPublicClassPublicIntInstanceField = -5; |
| 26 |
public long otherPublicClassPublicLongInstanceField = -6; |
| 27 |
public float otherPublicClassPublicFloatInstanceField = -7.0f; |
| 28 |
public double otherPublicClassPublicDoubleInstanceField = -8.0; |
| 29 |
public Object otherPublicClassPublicObjectInstanceField = "-9"; |
| 30 |
|
| 31 |
protected boolean otherPublicClassProtectedBooleanInstanceField = true; |
| 32 |
protected byte otherPublicClassProtectedByteInstanceField = -10; |
| 33 |
protected char otherPublicClassProtectedCharInstanceField = (char)-11; |
| 34 |
protected short otherPublicClassProtectedShortInstanceField = -12; |
| 35 |
protected int otherPublicClassProtectedIntInstanceField = -13; |
| 36 |
protected long otherPublicClassProtectedLongInstanceField = -14; |
| 37 |
protected float otherPublicClassProtectedFloatInstanceField = -15.0f; |
| 38 |
protected double otherPublicClassProtectedDoubleInstanceField = -16.0; |
| 39 |
protected Object otherPublicClassProtectedObjectInstanceField = "-17"; |
| 40 |
|
| 41 |
private boolean otherPublicClassPrivateBooleanInstanceField = true; |
| 42 |
private byte otherPublicClassPrivateByteInstanceField = -18; |
| 43 |
private char otherPublicClassPrivateCharInstanceField = (char)-19; |
| 44 |
private short otherPublicClassPrivateShortInstanceField = -20; |
| 45 |
private int otherPublicClassPrivateIntInstanceField = -21; |
| 46 |
private long otherPublicClassPrivateLongInstanceField = -22; |
| 47 |
private float otherPublicClassPrivateFloatInstanceField = -23.0f; |
| 48 |
private double otherPublicClassPrivateDoubleInstanceField = -24.0; |
| 49 |
private Object otherPublicClassPrivateObjectInstanceField = "-25"; |
| 50 |
|
| 51 |
/* package */ boolean otherPublicClassPackageBooleanInstanceField = true; |
| 52 |
/* package */ byte otherPublicClassPackageByteInstanceField = -26; |
| 53 |
/* package */ char otherPublicClassPackageCharInstanceField = (char)-27; |
| 54 |
/* package */ short otherPublicClassPackageShortInstanceField = -28; |
| 55 |
/* package */ int otherPublicClassPackageIntInstanceField = -29; |
| 56 |
/* package */ long otherPublicClassPackageLongInstanceField = -30; |
| 57 |
/* package */ float otherPublicClassPackageFloatInstanceField = -31.0f; |
| 58 |
/* package */ double otherPublicClassPackageDoubleInstanceField = -32.0; |
| 59 |
/* package */ Object otherPublicClassPackageObjectInstanceField = "-33"; |
| 60 |
|
| 61 |
public static boolean otherPublicClassPublicBooleanStaticField = true; |
| 62 |
public static byte otherPublicClassPublicByteStaticField = -34; |
| 63 |
public static char otherPublicClassPublicCharStaticField = (char)-35; |
| 64 |
public static short otherPublicClassPublicShortStaticField = -36; |
| 65 |
public static int otherPublicClassPublicIntStaticField = -37; |
| 66 |
public static long otherPublicClassPublicLongStaticField = -38; |
| 67 |
public static float otherPublicClassPublicFloatStaticField = -39.0f; |
| 68 |
public static double otherPublicClassPublicDoubleStaticField = -40.0; |
| 69 |
public static Object otherPublicClassPublicObjectStaticField = "-41"; |
| 70 |
|
| 71 |
protected static boolean otherPublicClassProtectedBooleanStaticField = true; |
| 72 |
protected static byte otherPublicClassProtectedByteStaticField = -42; |
| 73 |
protected static char otherPublicClassProtectedCharStaticField = (char)-43; |
| 74 |
protected static short otherPublicClassProtectedShortStaticField = -44; |
| 75 |
protected static int otherPublicClassProtectedIntStaticField = -45; |
| 76 |
protected static long otherPublicClassProtectedLongStaticField = -46; |
| 77 |
protected static float otherPublicClassProtectedFloatStaticField = -47.0f; |
| 78 |
protected static double otherPublicClassProtectedDoubleStaticField = -48.0; |
| 79 |
protected static Object otherPublicClassProtectedObjectStaticField = "-49"; |
| 80 |
|
| 81 |
private static boolean otherPublicClassPrivateBooleanStaticField = true; |
| 82 |
private static byte otherPublicClassPrivateByteStaticField = -50; |
| 83 |
private static char otherPublicClassPrivateCharStaticField = (char)-51; |
| 84 |
private static short otherPublicClassPrivateShortStaticField = -52; |
| 85 |
private static int otherPublicClassPrivateIntStaticField = -53; |
| 86 |
private static long otherPublicClassPrivateLongStaticField = -54; |
| 87 |
private static float otherPublicClassPrivateFloatStaticField = -55.0f; |
| 88 |
private static double otherPublicClassPrivateDoubleStaticField = -56.0; |
| 89 |
private static Object otherPublicClassPrivateObjectStaticField = "-57"; |
| 90 |
|
| 91 |
/* package */ static boolean otherPublicClassPackageBooleanStaticField = true; |
| 92 |
/* package */ static byte otherPublicClassPackageByteStaticField = -58; |
| 93 |
/* package */ static char otherPublicClassPackageCharStaticField = (char)-59; |
| 94 |
/* package */ static short otherPublicClassPackageShortStaticField = -60; |
| 95 |
/* package */ static int otherPublicClassPackageIntStaticField = -61; |
| 96 |
/* package */ static long otherPublicClassPackageLongStaticField = -62; |
| 97 |
/* package */ static float otherPublicClassPackageFloatStaticField = -63.0f; |
| 98 |
/* package */ static double otherPublicClassPackageDoubleStaticField = -64.0; |
| 99 |
/* package */ static Object otherPublicClassPackageObjectStaticField = "-65"; |
| 100 |
|
| 101 |
public void otherPublicMethod() { } |
| 102 |
protected void otherProtectedMethod() { } |
| 103 |
private void otherPrivateMethod() { } |
| 104 |
/* package */ void otherPackageMethod() { } |
| 105 |
} |