Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [mdt-papyrus.dev] code formater - about the {} for if block

Apparently, the code formatter removes white space around block statement or cast.
Ex:

"if(xxx) {" instead of "if (xxx) {"

Or

"(int)aaa" instead of "(int) aaa"

Was this a volontary choice of getting rid of those basic Java conventions or is this a mistake in the formatter ?

-----Message d'origine-----
De : mdt-papyrus.dev-bounces@xxxxxxxxxxx [mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx] De la part de Cedric Dumoulin
Envoyé : mercredi 2 décembre 2009 17:20
À : Papyrus Project list
Objet : [mdt-papyrus.dev] code formater - about the {} for if block


  Hi all,

  Apparently, the code formatter doesn't allow to enforce the {..} for a 
block statement in if/else condition.
  So, we should take care by ourself to systematically use {} in if block.

  Cedric

_______________________________________________
mdt-papyrus.dev mailing list
mdt-papyrus.dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev


Back to the top