Deleting models that specify a non-null return value

Reviewed By: jeremydubreil

Differential Revision: D2648163

fb-gh-sync-id: 4df2456
master
Sam Blackshear 9 years ago committed by facebook-github-bot-1
parent db7dd5aebe
commit 4fa4c9f0d6

@ -1,24 +0,0 @@
/*
* Copyright (c) 2013 - 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.
*/
package com.google.common.collect;
import com.facebook.infer.models.InferBuiltins;
public class ImmutableList<E> {
private static final ImmutableList<Object> EMPTY = new ImmutableList<Object>();
@SuppressWarnings("unchecked")
public static <E> ImmutableList<E> of() {
InferBuiltins.assume(EMPTY != null);
return (ImmutableList<E>) EMPTY;
}
}

@ -28,9 +28,4 @@ public abstract class FileChannel extends AbstractInterruptibleChannel {
private native FileLock getFileLock(); private native FileLock getFileLock();
FileLock lock() {
FileLock f = getFileLock();
InferBuiltins.assume(f != null);
return f;
}
} }

Loading…
Cancel
Save