MCPcopy Create free account
hub / github.com/bsideup/jabel / run

Method run

example/src/main/java/com/example/JabelExample.java:13–27  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

11 }
12
13 public String run(String[] args) {
14 // Switch Expressions
15 // https://openjdk.java.net/jeps/325
16 var result = switch (args.length) {
17 case 1 -> {
18 yield """
19 one...
20 yet pretty long!
21 """;
22 }
23 case 2, 3 -> "two or three";
24 default -> new JabelExample().new Inner().innerPublic();
25 };
26 return result;
27 }
28
29 // Project Coin: Allow @SafeVarargs on private methods
30 // https://bugs.openjdk.java.net/browse/JDK-7196160

Callers 2

shouldWorkMethod · 0.95
mainMethod · 0.80

Calls 1

innerPublicMethod · 0.80

Tested by 1

shouldWorkMethod · 0.76