Skip to content

Commit

Permalink
Supress unchecked warnings in test resource builders
Browse files Browse the repository at this point in the history
  • Loading branch information
arteam committed Nov 21, 2017
1 parent 778ff8c commit d1e3894
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public class DAOTest {
BootstrapLogging.bootstrap();
}

public static abstract class Builder<B extends Builder> {
@SuppressWarnings("unchecked")
public static abstract class Builder<B extends Builder<B>> {
private String url = "jdbc:h2:mem:" + UUID.randomUUID();
private String username = "sa";
private String password = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ public class Resource {
/**
* A {@link Resource} builder which enables configuration of a Jersey testing environment.
*/
public static class Builder<B extends Builder> {
@SuppressWarnings("unchecked")
public static class Builder<B extends Builder<B>> {

private final Set<Object> singletons = new HashSet<>();
private final Set<Class<?>> providers = new HashSet<>();
Expand Down

0 comments on commit d1e3894

Please sign in to comment.