openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Dick (JIRA)" <>
Subject [jira] Commented: (OPENJPA-832) Add eclipse formatting preferences to website
Date Tue, 12 May 2009 21:07:45 GMT


Michael Dick commented on OPENJPA-832:

Hi Milosz, 

1. Curly braces for one line if/else statements are intentional - if we're following the Sun
Java code conventions. It isn't widely used throughout the code though - I believe the original
code drop used a different set of conventions and we've never cleaned them up. 

FWIW I clean them up when I see them in code I'm changing. 

2. I think I'm the original owner of the formatting preferences (not trying to steal credit
- they just match my settings - could have been someone else). If so the compiler settings
are an oversight, I just exported my config and sent it around after a cursory glance at the

3. I've only used the GUI to generate the config, so I'm not sure what you mean. The GUI claims
it only wraps when necessary. 


You're not alone. The eclipse formatter doesn't seem to work perfectly for me either - seems
to ignore it if just a curly brace goes past 80 chars, and some other miscellaneous problems
(maybe #3). 

> Add eclipse formatting preferences to website
> ---------------------------------------------
>                 Key: OPENJPA-832
>                 URL:
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: build / infrastructure
>            Reporter: Michael Dick
>            Assignee: Donald Woods
>            Priority: Minor
>         Attachments: openjpa-formatter.xml

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message