diff --git a/.baseline/checkstyle/checkstyle.xml b/.baseline/checkstyle/checkstyle.xml index 792229cfc..cd19cae45 100644 --- a/.baseline/checkstyle/checkstyle.xml +++ b/.baseline/checkstyle/checkstyle.xml @@ -53,6 +53,9 @@ + + + @@ -84,11 +87,13 @@ + org.apache.commons.lang3.Validate.*, + org.assertj.core.api.Assertions.*, + org.mockito.Mockito.*"/> @@ -110,7 +115,6 @@ - @@ -369,10 +373,6 @@ - - - - @@ -422,6 +422,7 @@ + @@ -435,7 +436,7 @@ - + @@ -468,10 +469,9 @@ - + - diff --git a/build.gradle b/build.gradle index e1577df42..5cc3aa9cf 100644 --- a/build.gradle +++ b/build.gradle @@ -30,7 +30,7 @@ buildscript { classpath 'com.netflix.nebula:gradle-info-plugin:5.2.0' classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4' classpath 'com.netflix.nebula:nebula-publishing-plugin:14.1.1' - classpath 'com.palantir.baseline:gradle-baseline-java:0.59.0' + classpath 'com.palantir.baseline:gradle-baseline-java:2.36.0' classpath 'com.palantir.gradle.gitversion:gradle-git-version:0.12.2' classpath 'gradle.plugin.org.inferred:gradle-processors:3.1.0' } diff --git a/dialogue-target/src/main/java/com/palantir/dialogue/UrlBuilder.java b/dialogue-target/src/main/java/com/palantir/dialogue/UrlBuilder.java index 217e96e6e..5522b77ea 100644 --- a/dialogue-target/src/main/java/com/palantir/dialogue/UrlBuilder.java +++ b/dialogue-target/src/main/java/com/palantir/dialogue/UrlBuilder.java @@ -25,6 +25,7 @@ import com.palantir.logsafe.Preconditions; import com.palantir.logsafe.SafeArg; import com.palantir.logsafe.UnsafeArg; +import com.palantir.logsafe.exceptions.SafeIllegalArgumentException; import java.io.ByteArrayOutputStream; import java.net.MalformedURLException; import java.net.URL; @@ -131,7 +132,7 @@ public URL build() { return new URL(protocol, host, port, file.toString()); } catch (MalformedURLException e) { - throw new IllegalArgumentException("Malformed URL", e); + throw new SafeIllegalArgumentException("Malformed URL", e); } }