Summary: If these collections don't encapsulate their state properly, there are bigger problems than thread safety issues :). Plus, these warnings are less-than-actionable for non-Guava maintainers. Reviewed By: peterogithub Differential Revision: D4324277 fbshipit-source-id: cacfbf0master
parent
84477a1060
commit
ee90e10491
@ -0,0 +1,22 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2016 - present Facebook, Inc.
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the BSD style license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree. An additional grant
|
||||||
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// have to pretend we're in the same package to access protected constructor
|
||||||
|
package com.google.common.collect;
|
||||||
|
|
||||||
|
import com.google.common.collect.ImmutableList;
|
||||||
|
|
||||||
|
abstract public class MyImmutableList<T> extends ImmutableList<T> {
|
||||||
|
private Object mFld;
|
||||||
|
|
||||||
|
public void writeFld() {
|
||||||
|
mFld = new Object();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in new issue