From 538418e84a856caa3135e7e13786e3553531af15 Mon Sep 17 00:00:00 2001 From: "Egor.Ushakov" Date: Mon, 24 Apr 2017 20:16:57 +0300 Subject: [PATCH] headexprent is always single-element --- .../java/decompiler/modules/decompiler/stats/IfStatement.java | 4 ++-- .../decompiler/modules/decompiler/stats/SwitchStatement.java | 4 ++-- .../modules/decompiler/stats/SynchronizedStatement.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/IfStatement.java b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/IfStatement.java index 9cb7ddb..9639e18 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/IfStatement.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/IfStatement.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 headexprent = new ArrayList<>(); // contains IfExprent + private final List headexprent = new ArrayList<>(1); // contains IfExprent // ***************************************************************************** // constructors diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/SwitchStatement.java b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/SwitchStatement.java index d3cc7f2..dd92238 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/SwitchStatement.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/SwitchStatement.java @@ -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 headexprent = new ArrayList<>(); + private final List headexprent = new ArrayList<>(1); // ***************************************************************************** // constructors diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/SynchronizedStatement.java b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/SynchronizedStatement.java index 04b03fe..e097571 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/SynchronizedStatement.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/SynchronizedStatement.java @@ -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 headexprent = new ArrayList<>(); + private final List headexprent = new ArrayList<>(1); // ***************************************************************************** // constructors