Skip to content

Commit 050ec65

Browse files
Excavator: Upgrades Baseline to the latest version (#1353)
1 parent fbd3163 commit 050ec65

7 files changed

Lines changed: 3 additions & 11 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ buildscript {
1414
classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.68.0'
1515
classpath 'com.palantir.suppressible-error-prone:gradle-suppressible-error-prone:2.9.0'
1616
classpath 'com.palantir.gradle.revapi:gradle-revapi:1.8.0'
17-
classpath 'com.palantir.baseline:gradle-baseline-java:6.35.0'
17+
classpath 'com.palantir.baseline:gradle-baseline-java:6.36.0'
1818
classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.34.0'
1919
}
2020
}

errors/src/main/java/com/palantir/conjure/java/api/errors/QosException.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ private QosException(String message, QosReason reason) {
4343
this.reason = Preconditions.checkNotNull(reason, "QosReason is required");
4444
}
4545

46-
@SuppressWarnings("for-rollout:InconsistentOverloads")
4746
private QosException(String message, Throwable cause, QosReason reason) {
4847
super(message, cause);
4948
this.reason = Preconditions.checkNotNull(reason, "QosReason is required");
@@ -132,7 +131,6 @@ public static RetryOther retryOther(URL redirectTo) {
132131
/**
133132
* Like {@link #retryOther(URL)}, but includes a reason.
134133
*/
135-
@SuppressWarnings("for-rollout:InconsistentOverloads")
136134
public static RetryOther retryOther(QosReason reason, URL redirectTo) {
137135
return new RetryOther(redirectTo, reason);
138136
}
@@ -147,7 +145,6 @@ public static RetryOther retryOther(URL redirectTo, Throwable cause) {
147145
/**
148146
* Like {@link #retryOther(URL)}, but includes a reason, and a cause.
149147
*/
150-
@SuppressWarnings("for-rollout:InconsistentOverloads")
151148
public static RetryOther retryOther(QosReason reason, URL redirectTo, Throwable cause) {
152149
return new RetryOther(redirectTo, cause, reason);
153150
}

service-config/src/main/java/com/palantir/conjure/java/api/config/service/HostAndPort.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ boolean hasPort() {
5757
return port >= 0;
5858
}
5959

60-
@SuppressWarnings("for-rollout:UnusedException")
6160
public static HostAndPort fromString(String hostPortString) {
6261
Preconditions.checkNotNull(hostPortString, "hostPortString");
6362
String host;
@@ -99,9 +98,7 @@ public static HostAndPort fromString(String hostPortString) {
9998
}
10099

101100
private static String[] getHostAndPortFromBracketedHost(String hostPortString) {
102-
@SuppressWarnings("for-rollout:InitializeInline")
103101
int colonIndex;
104-
@SuppressWarnings("for-rollout:InitializeInline")
105102
int closeBracketIndex;
106103
Preconditions.checkArgument(
107104
hostPortString.charAt(0) == '[',

service-config/src/main/java/com/palantir/conjure/java/api/config/service/HumanReadableDuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public Duration toJavaDuration() {
165165
* @implNote This method can be removed in JDK9
166166
* @see <a href="https://bugs.openjdk.java.net/browse/JDK-8141452">JDK-8141452</a>
167167
*/
168-
@SuppressWarnings({"for-rollout:StatementSwitchToExpressionSwitch", "for-rollout:UnnecessaryDefaultInEnumSwitch"})
168+
@SuppressWarnings("for-rollout:StatementSwitchToExpressionSwitch")
169169
private static ChronoUnit chronoUnit(TimeUnit unit) {
170170
switch (Preconditions.checkNotNull(unit, "unit")) {
171171
case NANOSECONDS:

service-config/src/main/java/com/palantir/conjure/java/api/config/service/ProxyConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public Type type() {
9595
return Type.HTTP;
9696
}
9797

98-
@SuppressWarnings({"for-rollout:StatementSwitchToExpressionSwitch", "for-rollout:UnnecessaryDefaultInEnumSwitch"})
98+
@SuppressWarnings("for-rollout:StatementSwitchToExpressionSwitch")
9999
@Value.Check
100100
protected final void check() {
101101
switch (type()) {

service-config/src/test/java/com/palantir/conjure/java/api/config/service/ServiceConfigurationFactoryTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ public void serDe_optional() throws Exception {
240240
.isEqualTo(deserialized);
241241
}
242242

243-
@SuppressWarnings("for-rollout:UnusedException")
244243
private ServicesConfigBlock deserialize(String file) {
245244
URL resource = Resources.getResource(file);
246245
try {

ssl-config/src/main/java/com/palantir/conjure/java/api/config/ssl/SslConfiguration.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ public StoreType keyStoreType() {
7373
}
7474
}
7575

76-
@SuppressWarnings("for-rollout:AnnotationPosition")
7776
@JsonAlias("key-store-key-alias")
7877
/** Alias of the key that should be used in the key store. If absent, first entry returned by key store is used. */
7978
public abstract Optional<String> keyStoreKeyAlias();

0 commit comments

Comments
 (0)