GitOrigin-RevId: 2d261a0ef6cfc3be90dd955dc75046d29d66e6ee
This commit is contained in:
Alexey Kudravtsev
2022-12-02 15:19:49 +01:00
committed by intellij-monorepo-bot
parent 793fab22f4
commit 4433ce807b
5 changed files with 12 additions and 10 deletions

View File

@@ -37,14 +37,14 @@ public class LombokLightFieldBuilder extends LightFieldBuilder implements Synthe
}
@Override
public LombokLightFieldBuilder setModifiers(String... modifiers) {
public @NotNull LombokLightFieldBuilder setModifiers(@NotNull String @NotNull ... modifiers) {
myModifierList.clearModifiers();
Stream.of(modifiers).forEach(myModifierList::addModifier);
return this;
}
@Override
public LombokLightFieldBuilder setModifierList(LightModifierList modifierList) {
public @NotNull LombokLightFieldBuilder setModifierList(LightModifierList modifierList) {
setModifiers(modifierList.getModifiers());
return this;
}

View File

@@ -57,7 +57,7 @@ public class LombokLightParameter extends LightParameter implements SyntheticEle
}
@Override
public LombokLightParameter setModifiers(String... modifiers) {
public @NotNull LombokLightParameter setModifiers(@NotNull String @NotNull ... modifiers) {
final LombokLightModifierList lombokLightModifierList = getModifierList();
lombokLightModifierList.clearModifiers();
Stream.of(modifiers).forEach(lombokLightModifierList::addModifier);