diff --git a/.baseline/checkstyle/checkstyle.xml b/.baseline/checkstyle/checkstyle.xml index 792229cf..43ec38a3 100644 --- a/.baseline/checkstyle/checkstyle.xml +++ b/.baseline/checkstyle/checkstyle.xml @@ -84,11 +84,13 @@ + org.apache.commons.lang3.Validate.*, + org.assertj.core.api.Assertions.*, + org.mockito.Mockito.*"/> @@ -422,6 +424,7 @@ + @@ -435,7 +438,7 @@ - + @@ -468,7 +471,7 @@ - + diff --git a/build.gradle b/build.gradle index ab7470b9..8aec9798 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ buildscript { dependencies { classpath 'com.netflix.nebula:gradle-info-plugin:5.1.1' classpath 'com.netflix.nebula:nebula-publishing-plugin:14.0.0' - classpath 'com.palantir.baseline:gradle-baseline-java:0.65.0' + classpath 'com.palantir.baseline:gradle-baseline-java:2.17.0' classpath 'com.palantir.gradle.conjure:gradle-conjure:4.2.0' classpath 'com.palantir.gradle.gitversion:gradle-git-version:0.7.1' classpath 'com.palantir.launchconfig:gradle-launch-config-plugin:1.2.0' diff --git a/recipe-example-server/src/main/java/com/palantir/conjure/examples/resources/RecipeBookResource.java b/recipe-example-server/src/main/java/com/palantir/conjure/examples/resources/RecipeBookResource.java index 1cfb0adf..acb4cdc3 100644 --- a/recipe-example-server/src/main/java/com/palantir/conjure/examples/resources/RecipeBookResource.java +++ b/recipe-example-server/src/main/java/com/palantir/conjure/examples/resources/RecipeBookResource.java @@ -16,7 +16,6 @@ package com.palantir.conjure.examples.resources; -import com.google.common.base.Preconditions; import com.palantir.conjure.examples.recipe.api.Recipe; import com.palantir.conjure.examples.recipe.api.RecipeBookService; import com.palantir.conjure.examples.recipe.api.RecipeErrors; @@ -38,7 +37,7 @@ public RecipeBookResource(Set recipes) { @Override public Recipe getRecipe(RecipeName name) { - Preconditions.checkNotNull(name, "Recipe name must be provided."); + com.palantir.logsafe.Preconditions.checkNotNull(name, "Recipe name must be provided."); checkIfRecipeExists(name); return recipes.get(name);