headexprent is always single-element

This commit is contained in:
Egor.Ushakov
2017-04-24 20:16:57 +03:00
parent cba10744d8
commit 538418e84a
3 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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