Friday, March 10, 2006

A Netbeans Bug thats bugging me...

Netbeans has a bug where it gets the indentation wrong after annotations which have no braced parameters after them, when you use it's reformat code. See the bug entry here. A quick workaround is to tag empty braces after your annotations so

@Entity
public class ....

becomes

@Entity()
public class ....

No comments: