This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 141184

Summary: Code Generation turns statements broken into multiple lines for readability into one massively long line.
Product: uml Reporter: collettd101 <collettd101>
Component: Code GenerationAssignee: issues@uml <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description collettd101 2008-07-22 15:24:11 UTC
Statements of java code intentionally broken into multiple lines by the Developer for readablity which are reverse 
engineered then code generated get converted into massively long lines.  The code merge needs to do a much better job 
of handling these statements.  Here's a sample:

Written by the developer:
     String veryLong = 
          "Part one" +  // This is part one.
          "Part two" +  // This is part two.
          "Part three";  // This is part three.

After reverse engineering/code generation:
     String veryLong = "Part one" + "Part two" + "Part three";

Not only is the formatting lost but also comments.  It's even uglier when you go look at a UML diagram that has this 
line of code in one of its classes.