text stringlengths 3 1.18M |
|---|
package otherpackage;
public class PublicAccess {
static public void main() {
System.out.println("Blort.");
}
}
|
// Copyright 2006 The Android Open Source Project
import otherpackage.PublicAccess;
public class Main {
public static void main(String[] args) {
System.out.println("access test");
PublicAccess pa = new PublicAccess();
pa.main();
}
}
|
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
// Copyright 2006 The Android Open Source Project
/**
* Miranda testing.
*/
public class MirandaClass extends MirandaAbstract {
public MirandaClass() {}
public boolean inInterface() {
//System.out.println(" MirandaClass inInterface");
return true;
}
public int inInterface2() {
... |
class MirandaClass2 extends MirandaAbstract {
public boolean inInterface() {
return true;
}
public int inInterface2() {
return 28;
}
}
|
// Copyright 2006 The Android Open Source Project
/**
* Miranda testing.
*/
public interface MirandaInterface {
public boolean inInterface();
}
|
// Copyright 2006 The Android Open Source Project
/**
* Miranda testing.
*/
public abstract class MirandaAbstract implements MirandaInterface, MirandaInterface2
{
protected MirandaAbstract() { }
//public abstract boolean inInterface();
//public abstract int inInterface2();
public boolean inAbstract... |
// Copyright 2006 The Android Open Source Project
/**
* Miranda testing.
*/
public interface MirandaInterface2 {
public boolean inInterface();
public int inInterface2();
}
|
// Copyright 2006 The Android Open Source Project
/**
* Miranda testing.
*/
public class Main {
public static void main(String[] args) {
MirandaClass mir = new MirandaClass();
System.out.println("MirandaClass:");
System.out.println(" inInterface: " + mir.inInterface());
System.o... |
/*
* Copyright 2006 The Android Open Source Project
*/
import java.lang.reflect.Array;
/**
* Test java.lang.reflect.Array.
*/
public class Main {
public static void main(String[] args) {
testSingleInt();
testSingle();
testMultiInt();
testMulti();
System.out.println("Re... |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
// Copyright 2006 The Android Open Source Project
/**
* Test synchronization primitives.
*
* TODO: this should be re-written to be a little more rigorous and/or
* useful. Also, the ThreadDeathHandler stuff should be exposed or
* split out.
*/
public class Main {
public static void main(String[] args) {
... |
// Copyright 2007 The Android Open Source Project
import java.lang.Thread.UncaughtExceptionHandler;
/**
* Report death-by-uncaught-exception.
*/
public class ThreadDeathHandler implements Thread.UncaughtExceptionHandler {
private String mMyMessage;
public ThreadDeathHandler(String msg) {
mMyMessage... |
import java.util.Map;
public class Main {
static public void main(String[] args) throws Exception {
checkManager();
for (int i = 1; i <= 2; i++) {
System.out.println("\nspawning child #" + i);
child();
Thread.sleep(2000);
checkManager();
}
... |
/*package*/ enum SamePackagePrivateEnum {
ZERO, ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE,
TEN, ELEVEN, TWELVE, THIRTEEN, FOURTEEN, FIFTEEN, SIXTEEN,
SEVENTEEN, EIGHTEEN, NINETEEN;
}
|
package otherpackage;
public enum OtherPackagePublicEnum {
ZERO, ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE,
TEN, ELEVEN, TWELVE, THIRTEEN, FOURTEEN, FIFTEEN, SIXTEEN,
SEVENTEEN, EIGHTEEN, NINETEEN;
}
|
public enum SamePackagePublicEnum {
ZERO, ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE,
TEN, ELEVEN, TWELVE, THIRTEEN, FOURTEEN, FIFTEEN, SIXTEEN,
SEVENTEEN, EIGHTEEN, NINETEEN;
}
|
import otherpackage.OtherPackagePublicEnum;
public class Main {
/** used by {@link #basisCall} */
static private int basisTestValue = 12;
static public void main(String[] args) throws Exception {
boolean timing = (args.length >= 1) && args[0].equals("--timing");
run(timing);
}
sta... |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
public class Main {
static public void main(String[] args) throws Exception {
int millis = 1000;
if (args.length != 0) {
millis = Integer.parseInt(args[0]);
}
System.out.println("Sleeping " + millis + " msec...");
long start = System.currentTimeMillis();
... |
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
package otherpackage;
class PackageAccess {
/*package*/ PackageAccess() {
}
}
|
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
// Copyright 2008 The Android Open Source Project
import java.lang.ref.WeakReference;
public class FinalizerTest {
public static FinalizerTest mNothing = new FinalizerTest("nothing");
public static FinalizerTest mReborn = mNothing;
public String mMsg = "default";
public FinalizerTest(String msg) {
... |
// Copyright 2008 The Android Open Source Project
import java.lang.ref.WeakReference;
/**
* Some finalizer tests.
*
* This only works if System.runFinalization() causes finalizers to run
* immediately or very soon.
*/
public class Main {
private static void snooze(int ms) {
try {
Thread.s... |
// Copyright 2006 The Android Open Source Project
/**
* Blah.
*/
public class ImplB implements Iface1, Iface2 {
public int iFunc1(int ii) {
return ii+10;
}
public int iFunc2(int ii) {
return ii+20;
}
public static String mWhoami = new String("ImplB!");
}
|
// Copyright 2006 The Android Open Source Project
/**
* Interface test.
*/
public class ImplBSub extends ImplB implements /*Iface2,*/ Iface2Sub1 {
public int iFunc1(int ii) {
return ii+100;
}
public int iFunc2(int ii) {
return ii+200;
}
}
|
// Copyright 2006 The Android Open Source Project
/**
* Blah.
*/
public class ImplA implements Iface1, Iface2 {
public int iFunc1(int ii) {
return ii+1;
}
public int iFunc2(int ii) {
return ii+2;
}
}
|
// Copyright 2006 The Android Open Source Project
/**
* Another interface.
*/
public interface Iface2 {
public int iFunc2(int ii);
}
|
// Copyright 2006 The Android Open Source Project
/**
* Another interface.
*/
public interface Iface2Sub1 extends Iface2, Cloneable {
//public int iFunc2(int ii);
}
|
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
// Copyright 2005 The Android Open Source Project
/**
* Test stuff.
*/
public interface Iface1 {
public int iFunc1(int ii);
public float mFloaty = 5.0f;
public String mWahoo = new String("wahoo");
}
|
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
// Copyright 2007 The Android Open Source Project
/**
* Make sure that a sub-thread can join the main thread.
*/
public class Main {
public static void main(String[] args) {
Thread t;
t = new Thread(new JoinMainSub(Thread.currentThread()), "Joiner");
System.out.print("Starting thread '" ... |
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
// Copyright 2008 The Android Open Source Project
package other;
/*
* Declare a few fields to reflect upon.
*/
public class OtherPackage {
public char pubCharField = 0x8765;
protected short protShortField = 0x1234;
protected Object protObjectField = "blah";
double pkgDoubleField = 3.141592654;
}
|
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
package junit.framework;
/**
* Thrown when an assertion failed.
*/
public class AssertionFailedError extends Error {
public AssertionFailedError () {
}
public AssertionFailedError (String message) {
super (message);
}
}
|
package junit.framework;
/**
* Thrown when an assert equals for Strings failed.
*
* Inspired by a patch from Alex Chaffee mailto:alex@purpletech.com
*/
public class ComparisonFailure extends AssertionFailedError {
private String fExpected;
private String fActual;
/**
* Constructs a comparison fai... |
package junit.framework;
/**
* A set of assert methods. Messages are only displayed when an assert fails.
*/
public class Assert {
/**
* Protect constructor since it is a static only class
*/
protected Assert() {
}
/**
* Asserts that a condition is true. If it isn't it throws
*... |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
// Copyright 2008 The Android Open Source Project
public class Main {
int mFoo = 27;
private void doStuff() {
System.out.println("mFoo is " + mFoo);
}
public static void main(String[] args) {
Main instance = null;
instance.doStuff();
}
}
|
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
// Copyright 2006 The Android Open Source Project
/**
* Version with package scope access.
*/
public class SemiPrivate {
/* not private */ static String mPrivvy = "stuff";
}
|
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
// Copyright 2006 The Android Open Source Project
/**
* Some stuff for access checks.
*/
public class PublicAccess {
public static void main() {
String shouldFail = SemiPrivate.mPrivvy;
System.out.println("Got " + shouldFail);
}
}
|
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
// Copyright 2006 The Android Open Source Project
/**
* Version with private access.
*/
public class SemiPrivate {
private static String mPrivvy = "stuff";
}
|
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
public abstract class Blah {
public void unrelatedStuff() {
}
}
|
public interface BlahFeature {
public void doStuff();
}
|
public class BlahOne extends Blah implements BlahFeature {
public void doStuff() {
System.out.println("BlahOne");
}
}
|
// Copyright 2007 The Android Open Source Project
import java.lang.reflect.Type;
/**
* Throw a few things at the verifier, all of which are expected to pass.
*/
public class Main {
static public void main(String[] args) {
tryBlah(1);
System.out.println("Zorch.");
}
/*
* Make sure ... |
public class BlahTwo extends Blah implements BlahFeature {
public void doStuff() {
System.out.println("BlahTwo");
}
}
|
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
// Copyright 2008 The Android Open Source Project
/**
* Doubled sub-class, form #1.
*/
public class DoubledExtend extends Base {
public DoubledExtend() {
//System.out.println("Ctor: doubled extend, type 1");
}
@Override
public DoubledExtend getExtended() {
System.out.println("getExte... |
// Copyright 2008 The Android Open Source Project
/**
* Doubled sub-class, form #1.
*/
class DoubledImplement implements ICommon {
public DoubledImplement() {
System.out.println("Ctor: doubled implement, type 1");
}
public DoubledImplement getDoubledInstance() {
return new DoubledImpleme... |
// Copyright 2008 The Android Open Source Project
/**
* Common interface.
*/
public interface ICommon {
public DoubledImplement getDoubledInstance();
}
|
// Copyright 2008 The Android Open Source Project
/**
* Non-public interface class, inaccessible from alternate class loader.
*/
interface InaccessibleInterface {
}
|
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
// Copyright 2008 The Android Open Source Project
/**
* Non-public base class, inaccessible from alternate class loader.
*/
class InaccessibleBase {
}
|
// Copyright 2008 The Android Open Source Project
/**
* Common base class.
*/
public class Base {
public Base() {}
public DoubledExtend getExtended() {
return new DoubledExtend();
}
public static String doStuff(DoubledExtend dt) {
return dt.getStr();
}
}
|
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
public class Useless implements ICommon {
public DoubledImplement getDoubledInstance() { return null; }
}
|
// Copyright 2008 The Android Open Source Project
/**
* Simple, public base class.
*/
public class SimpleBase {
public SimpleBase() {}
}
|
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
// Copyright 2008 The Android Open Source Project
/**
* Doubled sub-class, form #2.
*/
public class DoubledExtend extends Base {
public DoubledExtend() {
//System.out.println("Ctor: doubled extend, type 2");
}
@Override
public DoubledExtend getExtended() {
//System.out.println("getEx... |
// Copyright 2008 The Android Open Source Project
/**
* Doubled sub-class, form #2.
*/
public class DoubledImplement implements ICommon {
public DoubledImplement() {
System.out.println("Ctor: doubled implement, type 2");
}
public DoubledImplement getDoubledInstance() {
return new Doubled... |
// Copyright 2008 The Android Open Source Project
/**
* Public class that can't access its base.
*/
public class Inaccessible2 extends InaccessibleBase {
public Inaccessible2() {
System.out.println("--- inaccessible2");
}
}
|
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
// Copyright 2008 The Android Open Source Project
/**
* Non-public class, inaccessible from Main. Note the constructor is
* public.
*/
class Inaccessible1 extends SimpleBase {
public Inaccessible1() {
System.out.println("--- inaccessible1");
}
}
|
// Copyright 2008 The Android Open Source Project
/**
* Public class that can't access its interface.
*/
public class Inaccessible3 implements InaccessibleInterface {
public Inaccessible3() {
System.out.println("--- inaccessible3");
}
}
|
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.