aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/UtilityClass.java
blob: 1d541b6e98f23fae16973fed1e3ba47d422970ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
final class UtilityClass {
	private static long someField = System.currentTimeMillis();
	static void someMethod() {
		System.out.println();
		new InnerClass();
		new InnerStaticClass();
	}
	protected static class InnerClass {
		private String innerInnerMember;
	}
	protected static class InnerStaticClass {
		private String innerInnerMember;
	}
	@java.lang.SuppressWarnings("all")
	private UtilityClass() {
		throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated");
	}
}
class UtilityInner {
	static class InnerInner {
		static final class InnerInnerInner {
			static int member;
			@java.lang.SuppressWarnings("all")
			private InnerInnerInner() {
				throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated");
			}
		}
	}
	enum UtilityInsideEnum {
		FOO, BAR;
		static final class InsideEnum {
			static int member;
			@java.lang.SuppressWarnings("all")
			private InsideEnum() {
				throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated");
			}
		}
	}
	interface UtilityInsideInterface {
		final class InsideInterface {
			static int member;
			@java.lang.SuppressWarnings("all")
			private InsideInterface() {
				throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated");
			}
		}
	}
}