headexprent is always single-element

master
Egor.Ushakov 7 years ago
parent cba10744d8
commit 538418e84a
  1. 4
      src/org/jetbrains/java/decompiler/modules/decompiler/stats/IfStatement.java
  2. 4
      src/org/jetbrains/java/decompiler/modules/decompiler/stats/SwitchStatement.java
  3. 4
      src/org/jetbrains/java/decompiler/modules/decompiler/stats/SynchronizedStatement.java

@ -1,5 +1,5 @@
/*
* Copyright 2000-2016 JetBrains s.r.o.
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -52,7 +52,7 @@ public class IfStatement extends Statement {
private boolean iffflag;
private final List<Exprent> headexprent = new ArrayList<>(); // contains IfExprent
private final List<Exprent> headexprent = new ArrayList<>(1); // contains IfExprent
// *****************************************************************************
// constructors

@ -1,5 +1,5 @@
/*
* Copyright 2000-2015 JetBrains s.r.o.
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -45,7 +45,7 @@ public class SwitchStatement extends Statement {
private StatEdge default_edge;
private final List<Exprent> headexprent = new ArrayList<>();
private final List<Exprent> headexprent = new ArrayList<>(1);
// *****************************************************************************
// constructors

@ -1,5 +1,5 @@
/*
* Copyright 2000-2015 JetBrains s.r.o.
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -32,7 +32,7 @@ public class SynchronizedStatement extends Statement {
private Statement body;
private final List<Exprent> headexprent = new ArrayList<>();
private final List<Exprent> headexprent = new ArrayList<>(1);
// *****************************************************************************
// constructors

Loading…
Cancel
Save