Skip to content

Instantly share code, notes, and snippets.

View gavlyukovskiy's full-sized avatar
🇺🇦
Donate to Ukrainian army - https://savelife.in.ua/en/

Artur Havliukovskyi gavlyukovskiy

🇺🇦
Donate to Ukrainian army - https://savelife.in.ua/en/
View GitHub Profile
package org.springframework.cloud.sleuth.annotation;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.cloud.sleuth.SpanReporter;
import org.springframework.cloud.sleuth.annotation.SleuthSpanCreatorCircularDependencyTests.TestConfiguration;
import org.springframework.cloud.sleuth.util.ArrayListSpanAccumulator;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.sql.SQLException;
import java.util.Arrays;
import static utils.function.CheckedFunction.checked;
public class Test {
public static void main(String[] args) {
try {
import java.io.IOException;
import java.sql.SQLException;
public class GenericException {
public static void main(String[] args) {
noError();
noError2();
withError();
}
import java.util.ArrayList;
import java.util.Arrays;
public class Issue {
public static void main(String[] args) {
Arrays.asList("a", "b", "c")
.stream()
.collect(() -> new ArrayList<>(), ArrayList::add, ArrayList::addAll);
}
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.List;
class Issue {
public static void main(String[] args) throws Exception {
List<String> argumentNames = Arrays.asList("userId", "userName");
Issue issue = new Issue();