Skip to content

Commit

Permalink
Migrate usages of obsolete Guava APIs.
Browse files Browse the repository at this point in the history
RELNOTES=n/a
PiperOrigin-RevId: 639003786
  • Loading branch information
cpovirk authored and Google Java Core Libraries committed May 31, 2024
1 parent c497a97 commit 6c67228
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions android/guava-tests/test/com/google/common/io/IoTestCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@

package com.google.common.io;

import com.google.common.collect.Sets;
import com.google.errorprone.annotations.CanIgnoreReturnValue;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URL;
import java.util.HashSet;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
Expand Down Expand Up @@ -51,7 +51,7 @@ public abstract class IoTestCase extends TestCase {
private File testDir;
private File tempDir;

private final Set<File> filesToDelete = Sets.newHashSet();
private final Set<File> filesToDelete = new HashSet<>();

@Override
protected void tearDown() {
Expand Down
4 changes: 2 additions & 2 deletions guava-tests/test/com/google/common/io/IoTestCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@

package com.google.common.io;

import com.google.common.collect.Sets;
import com.google.errorprone.annotations.CanIgnoreReturnValue;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URL;
import java.util.HashSet;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
Expand Down Expand Up @@ -51,7 +51,7 @@ public abstract class IoTestCase extends TestCase {
private File testDir;
private File tempDir;

private final Set<File> filesToDelete = Sets.newHashSet();
private final Set<File> filesToDelete = new HashSet<>();

@Override
protected void tearDown() {
Expand Down

0 comments on commit 6c67228

Please sign in to comment.