1
2
3
4
5
6
7
8
9 package com.puppycrawl.tools.checkstyle.checks.imports.unusedimports;
10
11
12
13 import java.awt.Component;
14
15
16 import static java.util.Map.copyOf;
17 import static java.util.Arrays.copyOf;
18
19 import java.lang.String;
20
21 import java.util.Stack;
22 import java.util.Map;
23
24 import java.util.List;
25 import java.util.function.Function;
26
27 import static java.lang.Integer.parseInt;
28
29
30
31
32 class Example1{
33 Stack stack = new Stack();
34 private Object Component;
35 int[] arr = {0,0};
36 int[] array = copyOf(arr , 1);
37 Function <String, Integer> stringToInteger = Integer::parseInt;
38 }
39