summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>2014-07-18 19:34:54 +0200
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>2014-07-18 19:34:54 +0200
commit58427deb498ba9a0caff72db129d4cf41791d8e6 (patch)
treefbc4d7f283a3fc85ad3f8e3b04d4527c186f31e4 /src
parentb3a1c412443b7b658e7a59cbe1f83c82a0f56901 (diff)
downloadfernflower-58427deb498ba9a0caff72db129d4cf41791d8e6.tar
fernflower-58427deb498ba9a0caff72db129d4cf41791d8e6.tar.gz
fernflower-58427deb498ba9a0caff72db129d4cf41791d8e6.tar.lz
fernflower-58427deb498ba9a0caff72db129d4cf41791d8e6.tar.xz
fernflower-58427deb498ba9a0caff72db129d4cf41791d8e6.zip
missing parentheses on default constructor invocation
Diffstat (limited to 'src')
-rw-r--r--src/de/fernflower/modules/decompiler/exps/NewExprent.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/de/fernflower/modules/decompiler/exps/NewExprent.java b/src/de/fernflower/modules/decompiler/exps/NewExprent.java
index eaa49ae..22ee631 100644
--- a/src/de/fernflower/modules/decompiler/exps/NewExprent.java
+++ b/src/de/fernflower/modules/decompiler/exps/NewExprent.java
@@ -307,7 +307,7 @@ public class NewExprent extends Exprent {
}
int start = enumconst ? 2 : 0;
- if(start < lstParameters.size()) {
+ if(!enumconst || start < lstParameters.size()) {
buf.append("(");
boolean firstpar = true;