blob: 9690e0b4781c27cfb17b1aaaae26aa962fe54c5a [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package x.y.z;
import f.FieldUsageEnum;
/**
* Tests the usage of restricted enum fields
*/
@SuppressWarnings({"unused", "hiding"})
public class testF6 {
int f2 = FieldUsageEnum.A.f2;
int f3 = FieldUsageEnum.f3;
Object o = FieldUsageEnum.A;
public static class inner {
/**
* Constructor
*/
public inner() {
int f2 = FieldUsageEnum.A.f2;
int f3 = FieldUsageEnum.f3;
Object o = FieldUsageEnum.A;
}
}
class inner2 {
/**
* Constructor
*/
public inner2() {
int f2 = FieldUsageEnum.A.f2;
int f3 = FieldUsageEnum.f3;
Object o = FieldUsageEnum.A;
}
}
}
@SuppressWarnings({"unused"})
class outer {
/**
* Constructor
*/
public outer() {
int f2 = FieldUsageEnum.A.f2;
int f3 = FieldUsageEnum.f3;
Object o = FieldUsageEnum.A;
}
}