Skip to content

Commit

Permalink
build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gtiwari333 committed Dec 25, 2023
1 parent a67095c commit d66f26b
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
public class CommonExceptionHandler {
private final Tracer tracer;

public CommonExceptionHandler(Tracer tracer) {
protected CommonExceptionHandler(Tracer tracer) {
this.tracer = tracer;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@RestControllerAdvice
class ExceptionHandler extends CommonExceptionHandler {
public ExceptionHandler(Tracer tracer) {
ExceptionHandler(Tracer tracer) {
super(tracer);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@RestControllerAdvice
class ExceptionHandler extends CommonExceptionHandler {
public ExceptionHandler(Tracer tracer) {
ExceptionHandler(Tracer tracer) {
super(tracer);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.SecureRandom;
import java.util.Map;
import java.util.Random;

Expand All @@ -15,11 +16,12 @@
@RequestMapping("/test")
@Slf4j
public class HelloResource {
private static final Random RANDOM = new SecureRandom();

@GetMapping("/hello")
public Map<String, String> sayHello() throws Exception {
public Map<String, String> sayHello() {
log.info("Received hello request");
if (new Random().nextBoolean()) {
if (RANDOM.nextBoolean()) {
throw new BaseException("Something");
}
return Map.of("hello", "world");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@RestControllerAdvice
class ExceptionHandler extends CommonExceptionHandler {
public ExceptionHandler(Tracer tracer) {
ExceptionHandler(Tracer tracer) {
super(tracer);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@RestControllerAdvice
class ExceptionHandler extends CommonExceptionHandler {
public ExceptionHandler(Tracer tracer) {
ExceptionHandler(Tracer tracer) {
super(tracer);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@RestControllerAdvice
class ExceptionHandler extends CommonExceptionHandler {
public ExceptionHandler(Tracer tracer) {
ExceptionHandler(Tracer tracer) {
super(tracer);
}
}

0 comments on commit d66f26b

Please sign in to comment.