1 package com.puppycrawl.tools.checkstyle.grammar.antlr4;
2
3 import java.io.BufferedReader;
4 import java.io.FileNotFoundException;
5 import java.io.FileReader;
6 import java.io.IOError;
7 import java.io.IOException;
8 import java.util.function.BiFunction;
9
10 public class InputAntlr4AstRegressionUncommon4 {
11 void m3() throws FileNotFoundException {
12 int x = 2 + 2;
13 int y = ( x + 2);
14 m4( x, x);
15 BiFunction<Integer, Integer, Integer> lambda9
16 = ( a, b) -> a + b;
17
18 BiFunction<Integer, Integer, Integer> lambda13
19 = ( a , b ) -> a + b;
20 }
21
22 int m4 (int z, int q) throws FileNotFoundException {
23 try (
24 java
25 .
26 io
27 .
28 BufferedReader bufferedReader
29 = new BufferedReader(new FileReader("path"))) {
30 } catch (IOException e) {
31 e.printStackTrace();
32 }
33 return 8;
34 }
35
36 class CelebrationLunch<I extends Number, L extends Number, D extends Number> {
37 class Section<A extends Number, B extends Number, C extends Number> {
38
39 }
40 }
41
42 private CelebrationLunch<Integer,Long,Double> inner;
43 CelebrationLunch<Integer, Long, Double>
44 .Section<Number, Number, Number> section = inner.new Section<>();
45
46 @NonNull String p1 = "hello";
47 void method() {
48 try {
49 System.out.println();
50 }
51 catch (@NonNull IOError | ArithmeticException e) {
52
53 }
54 }
55
56 void m23(Class<Object> clazz) {
57 if (InputAntlr4AstRegressionUncommon4.this != null) {
58 }
59 }
60
61 }
62
63 class H006_ComplexConstructors<T> {
64 public <V> H006_ComplexConstructors(T t, V v) {
65 }
66
67 static {
68 H006_ComplexConstructors<? extends Number> x =
69 new <String>H006_ComplexConstructors<Integer>(0, "");
70 }
71
72
73 class Inner3 {
74 Inner3(int x) {
75 H006_ComplexConstructors<Integer> instance =
76 new <String>H006_ComplexConstructors<Integer>(0, "");
77 Object o = instance.new Inner3(5).new <String>InnerInner3("hey");
78 }
79
80 class InnerInner3 {
81 <D> InnerInner3(D in) {
82 }
83 }
84 }
85 }
86
87 @interface NonNull{}