Share

Jalopy Java Source Code Formatter

Tracker: Bugs

1 failed to format array init in if - ID: 607303
Last Update: Settings changed ( marcohu )

Hi,

I found a problem if a array initialization is inside a
if statement. Example:

if (ebi.hasPropertyDescriptors(new String[] {
modelPropertyName
})) {
modelDescriptor =
ebi.getPropertyDescriptor(modelPropertyName);
} else {
String msg = "modelclass " +
model.getClass() +
" does not contain the
required properties.";
cat.fatal(msg);
throw new IllegalStateException(msg);
}

It seems that jalopy thinks the initialization bracket
finish the if statement.

Greetings,
Dirk


Dirk Hoffmann ( dirkey ) - 2002-09-10 13:14

1

Closed

Fixed

Marco Hunsicker

None

v1.0 (example)

Public


Comment ( 1 )

Date: 2002-09-13 18:27
Sender: marcohuProject Admin

Logged In: YES
user_id=44430

The next version will sort it out.


Attached File

No Files Currently Attached

Changes ( 5 )

Field Old Value Date By
status_id Open 2002-11-13 00:02 marcohu
close_date - 2002-11-13 00:02 marcohu
resolution_id None 2002-09-15 21:56 marcohu
priority 5 2002-09-13 18:27 marcohu
assigned_to nobody 2002-09-13 18:27 marcohu