Share

Jalopy Java Source Code Formatter

Tracker: Bugs

1 Printer Java: bad indentation in method with new array - ID: 617684
Last Update: Settings changed ( marcohu )

While admittedly the method call below is damn ugly to
begin with, it becomes even more unreadable after
formatting.

<pre>
contentBuffer.append(SimpleItemTemplator.matchInFile(
new String[] {

"##loginForm##",

SimpleItemTemplator.matchInFile(

new String[] {

"##successPage##",

successPage,

"##errorPage##",

errorPage
},

DefaultsLoader.getFullFilePath(

"templates/loginForm.txt"))
},

SimpleItemTemplator.loadWithoutMatch(

DefaultsLoader.getFullFilePath(

"templates/loginToCheckOut.txt"))));
</pre>
becomes the following after formatting
<pre>
contentBuffer.append(SimpleItemTemplator.matchInFile(
new String[] {
"##loginForm##",
SimpleItemTemplator.matchInFile(
new String[] {
"##successPage##",
successPage,
"##errorPage##",
errorPage
},
DefaultsLoader.getFullFilePath(

"templates/loginForm.txt"))
},

SimpleItemTemplator.loadWithoutMatch(

DefaultsLoader.getFullFilePath(

"templates/loginToCheckOut.txt"))));
</pre>

done via the netbeans plug-in


Kate Rhodes ( masukomi ) - 2002-10-02 18:24

1

Closed

Fixed

Marco Hunsicker

Printer Java

None

Public


Comments ( 3 )

Date: 2002-10-13 15:52
Sender: masukomiSourceForge.net Subscriber

Logged In: YES
user_id=25500

Looks great, thanks.


Date: 2002-10-13 10:18
Sender: marcohuProject Admin

Logged In: YES
user_id=44430

I've attached a file that shows the result with my current
dev-version. Feel free to add critizism.

New beta should be out later this month.

Thanks.


Date: 2002-10-02 18:26
Sender: masukomiSourceForge.net Subscriber

Logged In: YES
user_id=25500

grr...sorry abou tthe horrible formatting... was hoping the
pre tag would work.


Attached File ( 1 )

Filename Description Download
test.java Demonstrates current capabilities Download

Changes ( 8 )

Field Old Value Date By
close_date - 2002-11-13 00:02 marcohu
status_id Open 2002-11-13 00:02 marcohu
resolution_id None 2002-11-13 00:02 marcohu
assigned_to nobody 2002-10-13 10:19 marcohu
summary bad indentation in method with new array 2002-10-13 10:19 marcohu
category_id None 2002-10-13 10:19 marcohu
priority 5 2002-10-13 10:19 marcohu
File Added 32981: test.java 2002-10-13 10:18 marcohu