blob: e5025d7d41734882244a8800c52c84267afcf573 [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 testF7 {
int f4 = FieldUsageEnum.A.f4;
int f5 = FieldUsageEnum.f5;
Object o = FieldUsageEnum.A;
public static class inner {
/**
* Constructor
*/
public inner() {
int f4 = FieldUsageEnum.A.f4;
int f5 = FieldUsageEnum.f5;
Object o = FieldUsageEnum.A;
}
}
class inner2 {
/**
* Constructor
*/
public inner2() {
int f4 = FieldUsageEnum.A.f4;
int f5 = FieldUsageEnum.f5;
Object o = FieldUsageEnum.A;
}
}
}
@SuppressWarnings({"unused"})
class outer {
/**
* Constructor
*/
public outer() {
int f4 = FieldUsageEnum.A.f4;
int f5 = FieldUsageEnum.f5;
Object o = FieldUsageEnum.A;
}
}