Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-1406

eclipse code format template does not match existing code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • Documentation
    • None

    Description

      The eclipse code format template http://felix.apache.org/site/coding-standards.data/ApacheFelixCodingStandards.xml
      generates slightly different white space and blank line formatting than existing felix code.

      Specifically:

      1. spaces are inserted after the opening paren and before the closing paren in declarations and method calls:

      int method1( String arg1 )
      {
      if ( expr )

      { method1( arg1 ); }

      }

      The felix coding standards document http://felix.apache.org/site/coding-standards.html does not specifically specify these spaces,
      but all the examples show code formatted without them.

      2. two blank lines are inserted after package statement and between method declarations

      This actually agrees with the eclipse template, but the code I was reformatting (gogo) only had one blank line.

      Attachments

        1. ApacheFelixEclipseTemplate.xml
          28 kB
          Filippo Diotalevi
        2. Apache Felix Eclipse Template.xml
          28 kB
          Derek Baum

        Activity

          People

            Unassigned Unassigned
            db82407 Derek Baum
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: