Java class modifier handling

Java class modifier handling

von Anton Dil -
Anzahl Antworten: 0

There seems to be a small defect in that (apart from needing a single space between public and class) Coderunner doesn't handle some other class modifiers correctly depending on the modifier order, e.g.

public abstract class X

public final class X

public strictfp class X

public abstract strictfp class X

public strictfp abstact class X

I would suggest that the first two are probably common enough to be worth handling, besides ideally also handling alternative spacing using a whitespace regex, as the language specification suggests this order (rather than e.g. abstract public class).