File tree 8 files changed +16
-8
lines changed
guava/src/com/google/common
src/com/google/common/testing
test/com/google/common/testing
guava/src/com/google/common
src/com/google/common/testing
test/com/google/common/testing 8 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ public static void await(CountDownLatch latch) {
229
229
private static void createUnreachableLatchFinalizer (CountDownLatch latch ) {
230
230
Object unused =
231
231
new Object () {
232
- @ SuppressWarnings ("removal" ) // b/260137033
232
+ @ SuppressWarnings ({ "removal" , "Finalize" } ) // b/260137033
233
233
@ Override
234
234
protected void finalize () {
235
235
latch .countDown ();
@@ -301,7 +301,7 @@ public boolean isDone() {
301
301
* @throws RuntimeException if timed out or interrupted while waiting
302
302
* @since 12.0
303
303
*/
304
- @ SuppressWarnings ("removal" ) // b/260137033
304
+ @ SuppressWarnings ({ "removal" , "Finalize" } ) // b/260137033
305
305
public static void awaitFullGc () {
306
306
CountDownLatch finalizerRan = new CountDownLatch (1 );
307
307
WeakReference <Object > ref =
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ public void testAwait_CountDownLatch() {
46
46
final CountDownLatch latch = new CountDownLatch (1 );
47
47
Object unused =
48
48
new Object () {
49
+ @ SuppressWarnings ({"removal" , "Finalize" }) // b/260137033
49
50
@ Override
50
51
protected void finalize () {
51
52
latch .countDown ();
@@ -60,6 +61,7 @@ public void testAwaitDone_Future() {
60
61
final SettableFuture <@ Nullable Void > future = SettableFuture .create ();
61
62
Object unused =
62
63
new Object () {
64
+ @ SuppressWarnings ({"removal" , "Finalize" }) // b/260137033
63
65
@ Override
64
66
protected void finalize () {
65
67
future .set (null );
@@ -75,6 +77,7 @@ public void testAwaitDone_Future_Cancel() {
75
77
final SettableFuture <@ Nullable Void > future = SettableFuture .create ();
76
78
Object unused =
77
79
new Object () {
80
+ @ SuppressWarnings ({"removal" , "Finalize" }) // b/260137033
78
81
@ Override
79
82
protected void finalize () {
80
83
future .cancel (false );
@@ -215,6 +218,7 @@ public void testAwaitFullGc() {
215
218
final WeakReference <Object > ref =
216
219
new WeakReference <Object >(
217
220
new Object () {
221
+ @ SuppressWarnings ({"removal" , "Finalize" }) // b/260137033
218
222
@ Override
219
223
protected void finalize () {
220
224
finalizerRan .countDown ();
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ public InputStream openStream() throws IOException {
136
136
return openInputStream ();
137
137
}
138
138
139
- @ SuppressWarnings ("removal" ) // b/260137033
139
+ @ SuppressWarnings ({ "removal" , "Finalize" } ) // b/260137033
140
140
@ Override
141
141
protected void finalize () {
142
142
try {
Original file line number Diff line number Diff line change @@ -2124,7 +2124,7 @@ public String toString() {
2124
2124
return toStringHelper (this ).add ("state" , state .get ()).addValue (future ).toString ();
2125
2125
}
2126
2126
2127
- @ SuppressWarnings ("removal" ) // b/260137033
2127
+ @ SuppressWarnings ({ "removal" , "Finalize" } ) // b/260137033
2128
2128
@ Override
2129
2129
protected void finalize () {
2130
2130
if (state .get ().equals (OPEN )) {
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ public static void await(CountDownLatch latch) {
229
229
private static void createUnreachableLatchFinalizer (CountDownLatch latch ) {
230
230
Object unused =
231
231
new Object () {
232
- @ SuppressWarnings ("removal" ) // b/260137033
232
+ @ SuppressWarnings ({ "removal" , "Finalize" } ) // b/260137033
233
233
@ Override
234
234
protected void finalize () {
235
235
latch .countDown ();
@@ -301,7 +301,7 @@ public boolean isDone() {
301
301
* @throws RuntimeException if timed out or interrupted while waiting
302
302
* @since 12.0
303
303
*/
304
- @ SuppressWarnings ("removal" ) // b/260137033
304
+ @ SuppressWarnings ({ "removal" , "Finalize" } ) // b/260137033
305
305
public static void awaitFullGc () {
306
306
CountDownLatch finalizerRan = new CountDownLatch (1 );
307
307
WeakReference <Object > ref =
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ public void testAwait_CountDownLatch() {
46
46
final CountDownLatch latch = new CountDownLatch (1 );
47
47
Object unused =
48
48
new Object () {
49
+ @ SuppressWarnings ({"removal" , "Finalize" }) // b/260137033
49
50
@ Override
50
51
protected void finalize () {
51
52
latch .countDown ();
@@ -60,6 +61,7 @@ public void testAwaitDone_Future() {
60
61
final SettableFuture <@ Nullable Void > future = SettableFuture .create ();
61
62
Object unused =
62
63
new Object () {
64
+ @ SuppressWarnings ({"removal" , "Finalize" }) // b/260137033
63
65
@ Override
64
66
protected void finalize () {
65
67
future .set (null );
@@ -75,6 +77,7 @@ public void testAwaitDone_Future_Cancel() {
75
77
final SettableFuture <@ Nullable Void > future = SettableFuture .create ();
76
78
Object unused =
77
79
new Object () {
80
+ @ SuppressWarnings ({"removal" , "Finalize" }) // b/260137033
78
81
@ Override
79
82
protected void finalize () {
80
83
future .cancel (false );
@@ -215,6 +218,7 @@ public void testAwaitFullGc() {
215
218
final WeakReference <Object > ref =
216
219
new WeakReference <Object >(
217
220
new Object () {
221
+ @ SuppressWarnings ({"removal" , "Finalize" }) // b/260137033
218
222
@ Override
219
223
protected void finalize () {
220
224
finalizerRan .countDown ();
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ public InputStream openStream() throws IOException {
136
136
return openInputStream ();
137
137
}
138
138
139
- @ SuppressWarnings ("removal" ) // b/260137033
139
+ @ SuppressWarnings ({ "removal" , "Finalize" } ) // b/260137033
140
140
@ Override
141
141
protected void finalize () {
142
142
try {
Original file line number Diff line number Diff line change @@ -2139,7 +2139,7 @@ public String toString() {
2139
2139
return toStringHelper (this ).add ("state" , state .get ()).addValue (future ).toString ();
2140
2140
}
2141
2141
2142
- @ SuppressWarnings ("removal" ) // b/260137033
2142
+ @ SuppressWarnings ({ "removal" , "Finalize" } ) // b/260137033
2143
2143
@ Override
2144
2144
protected void finalize () {
2145
2145
if (state .get ().equals (OPEN )) {
You can’t perform that action at this time.
0 commit comments