/* * Copyright (c) 2013- Facebook. * All rights reserved. */ package codetoanalyze.java.checkers; import com.google.common.collect.ImmutableList; import java.util.ArrayList; import java.util.List; public class ImmutableCast { ImmutableList immutableList = ImmutableList.of("a", "b", "c"); List badCastFromField() { return immutableList; } List badCast(ImmutableList list) { return list; } List goodCast(ImmutableList list) { return new ArrayList(list); } }