mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Property accessor methods nullability
This commit is contained in:
@@ -365,6 +365,7 @@ public class JavaLanguageCodeStyleSettingsProvider extends LanguageCodeStyleSett
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public List<String> get() {
|
||||
return mySettings.getRepeatAnnotations();
|
||||
}
|
||||
|
||||
+3
@@ -2,10 +2,12 @@
|
||||
package com.intellij.application.options.codeStyle.properties;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public abstract class CodeStylePropertyAccessor<V> {
|
||||
public abstract boolean set(@NotNull V extVal);
|
||||
|
||||
@Nullable
|
||||
public abstract V get();
|
||||
|
||||
public final boolean setFromString(@NotNull String valueString) {
|
||||
@@ -16,6 +18,7 @@ public abstract class CodeStylePropertyAccessor<V> {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
protected abstract V parseString(@NotNull String string);
|
||||
|
||||
public boolean isGenericProperty() {
|
||||
|
||||
Reference in New Issue
Block a user