1 /*
2 * MIT License
3 * Copyright (c) 2006-2025 JMockit developers
4 * See LICENSE file for full license text.
5 */
6 package integration.tests;
7
8 import org.slf4j.Logger;
9 import org.slf4j.LoggerFactory;
10
11 /**
12 * The Class ClassInRegularPackage.
13 */
14 public class ClassInRegularPackage {
15
16 /** The logger. */
17 private static final Logger logger = LoggerFactory.getLogger(ClassInRegularPackage.class);
18
19 /** The Constant CONSTANT. */
20 public static final int CONSTANT = 123;
21
22 /**
23 * The Enum NestedEnum.
24 */
25 public enum NestedEnum {
26
27 /** The First. */
28 FIRST,
29
30 /** The Second. */
31 SECOND() {
32 @Override
33 public String toString() {
34 return "2nd";
35 }
36 };
37
38 static {
39 logger.info("test");
40 }
41 }
42
43 /**
44 * Do something.
45 *
46 * @param value
47 * the value
48 *
49 * @return true, if successful
50 */
51 public boolean doSomething(NestedEnum value) {
52 switch (value) {
53 case FIRST:
54 return true;
55
56 case SECOND:
57 value.toString();
58 break;
59 }
60
61 return value.ordinal() == CONSTANT;
62 }
63 }