forked from btraceio/btrace
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInterestingVarsClass.java
More file actions
35 lines (29 loc) · 899 Bytes
/
InterestingVarsClass.java
File metadata and controls
35 lines (29 loc) · 899 Bytes
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
package resources;
import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
public class InterestingVarsClass {
public static class Token<T> {
public boolean getKind() {
return true;
}
}
public static void initAndStartApp(String a, String b, String c) {
Collection<Token<String>> tokens = tokens();
for (Token<?> token : tokens) {
System.out.println(token);
}
StringBuilder nextVar = new StringBuilder(a);
nextVar.append(b);
Iterator<Token<String>> iter = tokens.iterator();
while (iter.hasNext()) {
Token<?> token = iter.next();
if (token.getKind()) {
iter.remove();
}
}
}
private static Collection<Token<String>> tokens() {
return Arrays.asList(new Token<String>());
}
}