Skip to content

Commit

Permalink
fixed Xtend QuickfixTest
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Feb 5, 2024
1 parent 1f05f9a commit fc950b4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,11 @@ protected GeneratorConfig getGeneratorConfig(EObject element) {
if (result == null) {
result = generatorConfigProvider.get(element);
getContext().put(GeneratorConfig.class, result);
}
// the GeneratorConfig for the same element could be set by other
// validators, e.g., JvmGenericTypeValidator, so we must ensure we initialize
// the methodInInterfaceModifierValidator
if (methodInInterfaceModifierValidator == null) {
if (result.getJavaSourceVersion().isAtLeast(JAVA8)) {
methodInInterfaceModifierValidator = new ModifierValidator(
newArrayList("public", "abstract", "static", "def", "override"), this);
Expand Down

0 comments on commit fc950b4

Please sign in to comment.