blob: 5dbe90e2b58132fdbad69eee9e53ad86301aa067 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package com.yahoo.container.plugin.classanalysis.sampleclasses;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import java.util.Collection;
/**
* Input for class analysis test verifying Java 14 switch statement.
*
* @author gjoranv
*/
public class SwitchStatement {
void switchStatement() throws Exception{
String foo = "";
Collection<?> c = switch (foo) {
case "list" -> ImmutableList.of();
case "set" -> ImmutableSet.of();
default -> throw new IllegalArgumentException();
};
}
}
|