aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/UtilityClass.java
blob: 8d3f4c08172316663e9c8da0aa1c8c81f6911068 (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
final class UtilityClass {
	private static long someField = System.currentTimeMillis();
	static void someMethod() {
		System.out.println();
	}
	protected static class InnerClass {
		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");
			}
		}
	}
}