Skip to content

Commit 4ffdda3

Browse files
abhinav-qlogicsduskis
authored andcommitted
deprecated warnings removed (#5241)
1 parent 2000afb commit 4ffdda3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/test/java/com/google/cloud/storage/contrib/nio

google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/test/java/com/google/cloud/storage/contrib/nio/UnixPathTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ public void testNormalize_trailingSlash() {
7777
@Test
7878
public void testNormalize_sameObjectOptimization() {
7979
UnixPath path = p("/hi/there");
80-
assertThat(path.normalize()).isSameAs(path);
80+
assertThat(path.normalize()).isSameInstanceAs(path);
8181
path = p("/hi/there/");
82-
assertThat(path.normalize()).isSameAs(path);
82+
assertThat(path.normalize()).isSameInstanceAs(path);
8383
}
8484

8585
@Test
@@ -95,8 +95,8 @@ public void testResolve() {
9595
@Test
9696
public void testResolve_sameObjectOptimization() {
9797
UnixPath path = p("/hi/there");
98-
assertThat(path.resolve(p(""))).isSameAs(path);
99-
assertThat(p("hello").resolve(path)).isSameAs(path);
98+
assertThat(path.resolve(p(""))).isSameInstanceAs(path);
99+
assertThat(p("hello").resolve(path)).isSameInstanceAs(path);
100100
}
101101

102102
@Test

0 commit comments

Comments
 (0)