| // Copyright (c) 2016, the R8 project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| // This code is not run directly. It needs to be compiled to dex code. |
| // 'throwing.dex' is what is run. |
| import java.util.ArrayList; |
| import java.util.LinkedList; |
| * This class' logic is completely bogus. The only purpose is to be recursive to avoid inlining |
| public class RenamedClass { |
| public List list = new ArrayList(); |
| if (list == null) { // always false |
| public void setList(List list) { |
| setList(new LinkedList()); |
| // Another method with the same signature as getList |
| public void swap(List list) { |
| if (before == null) { // always false |
| static RenamedClass create() { |
| RenamedClass theClass = new RenamedClass(); |
| theClass.setList(new LinkedList()); |
| void takeThingsForASpin(int value) { |
| swap(new LinkedList<>()); |