I'm using the OpenJML plugin for my project, but Eclipse auto formatting messes with my JML code. JML is written after a //@
symbol.
//@ requires password != null;
//@ ensures !isActive() && getPassword().testWord(password) ? isActive() && \result : isActive() == \old(isActive()) && !\result;
Eclipse auto formatting, however, adds a space in between of the //
and the @
symbols, rendering my JML code useless.
// @ requires password != null;
// @ ensures !isActive() && getPassword().testWord(password) ? isActive() && \result : isActive() == \old(isActive()) && !\result;
Is there a way in which I can disable adding a space between //
and @
symbols, or otherwise a way in which I can disable spacing after comments altogether?
I've tried changing the formatter profile, but I couldn't find the setting there.
I've also tried auto-removing trailing whitespace as explained here: How to auto-remove trailing whitespace in Eclipse? But that didn't work either. I assume because I'm specifically trying to change the comment auto formatting.