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 183913

Summary: Code formatting adds extra spaces after return value
Product: javafx Reporter: Alexandr Scherbatiy <sunflower>
Component: EditorAssignee: Anton Chechel <manowar>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 173487    

Description Alexandr Scherbatiy 2010-04-12 13:57:48 UTC
NetBeans-JavaFX-Soma:  #217

  Product Version         = NetBeans IDE Dev (Build 201004110201)
(#ca66f5e3f93f)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun
Microsystems Inc.


Steps to reproduce:

- Format the code:
--------------------------------------
public class Space {

    public function exists(): Boolean {false}

}
--------------------------------------

The result is:
--------------------------------------
    public function exists(): Boolean { false    }
--------------------------------------

There are some extra spaces after the 'false' return value
Comment 1 Anton Chechel 2010-04-13 13:25:06 UTC
fixed
http://hg.netbeans.org/javafx/rev/57a8eb10162f

Again - formatting behavior for spaces could be changed in editor settings.
Comment 2 Alexandr Scherbatiy 2010-04-16 11:10:41 UTC
verified in NetBeans-JavaFX-Soma: #221