What does the “Multiple markers” mean?

“Multiple markers” just means “there’s more than one thing wrong with this line”.

But the basic problem is that you’re trying to insert statements directly into a class, rather than having them in a constructor, method, initializer etc.

I suggest you change your code to something like this:

static Set<String> languages = getDefaultLanguages();

private static Set<String> getDefaultLanguages()
{
    Set<String> ret = new HashSet<String>();
    ret.add("en");
    ret.add("de");
    return ret;
}

Leave a Comment