package foo.bar.differentpackage; import foo.bar.BinaryExpr; class AClass { static Object field1 = BinaryExpr.Operator.OR; static Object field2 = foo.bar.BinaryExpr.Operator.AND; }