This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.sql.SQLException; | |
public class GenericException { | |
public static void main(String[] args) { | |
noError(); | |
noError2(); | |
withError(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |