Skip to content

Commit

Permalink
Excavator: Upgrades Baseline to the latest version (#1466)
Browse files Browse the repository at this point in the history
  • Loading branch information
svc-excavator-bot authored Nov 9, 2021
1 parent bdaad75 commit b6d2e14
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ buildscript {
classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.5.0'
classpath 'com.palantir.gradle.revapi:gradle-revapi:1.5.0'
classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.6.0'
classpath 'com.palantir.baseline:gradle-baseline-java:4.38.0'
classpath 'com.palantir.baseline:gradle-baseline-java:4.40.0'
classpath 'com.palantir.gradle.gitversion:gradle-git-version:0.12.3'
classpath 'gradle.plugin.org.inferred:gradle-processors:3.6.0'
classpath 'com.palantir.metricschema:gradle-metric-schema:0.8.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void testCleaner() {
private static void attemptToGarbageCollect() {
// Create some garbage to entice the collector
ByteArrayOutputStream baos = new ByteArrayOutputStream();
while (baos.toString().length() < 4096) {
while (baos.toString(StandardCharsets.UTF_8).length() < 4096) {
byte[] buf = "Hello, World!".getBytes(StandardCharsets.UTF_8);
baos.write(buf, 0, buf.length);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ public void testCannotPutNullKey() {
AttachmentKey<Long> key = null;
assertThatLoggableExceptionThrownBy(() -> attachments.put(key, 1L))
.isExactlyInstanceOf(SafeNullPointerException.class)
.hasExactlyArgs()
.hasNoArgs()
.hasMessage("key");
}

@Test
public void testCannotPutNullValue() {
assertThatLoggableExceptionThrownBy(() -> attachments.put(KEY1, null))
.isExactlyInstanceOf(SafeNullPointerException.class)
.hasExactlyArgs()
.hasNoArgs()
.hasMessage("value");
}

Expand Down

0 comments on commit b6d2e14

Please sign in to comment.