2 Replies Latest reply on Feb 18, 2011 11:08 AM by perneto

    Coding conventions

    perneto

      I've noticed you don't use an import statement for java.util, and instead repeat the full names of classes/interfaces like java.util.List.

      Do you mind if I change that on the classes I'm editing?

       

      Also, why do you use parenthesises around returned expressions in return statements?

        • 1. Coding conventions
          objectiser

          Olivier Pernet wrote:

           

          I've noticed you don't use an import statement for java.util, and instead repeat the full names of classes/interfaces like java.util.List.

          Do you mind if I change that on the classes I'm editing?

          No don't mind.

           

           

          Olivier Pernet wrote:

           

          Also, why do you use parenthesises around returned expressions in return statements?

          Just something I have always done - no reason, just the style I am used to - again I don't mind if you use your own style preferences.

           

          Main thing I don't like is changes from using tabs to spaces for indentation - this can make code comparison very difficult.

          • 2. Coding conventions
            perneto

            Main thing I don't like is changes from using tabs to spaces for indentation - this can make code comparison very difficult.

            Ah, good thing you mentioned it, my editor was set to use spaces. Just changed it.