apply nullable annotation to fix delete operation
This commit is contained in:
parent
10b2698c06
commit
f0d83f0d12
@ -1,6 +1,7 @@
|
|||||||
package de.marhali.easyi18n.model;
|
package de.marhali.easyi18n.model;
|
||||||
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* I18n translation with associated key path (full-key).
|
* I18n translation with associated key path (full-key).
|
||||||
@ -9,9 +10,9 @@ import org.jetbrains.annotations.NotNull;
|
|||||||
public class KeyedTranslation {
|
public class KeyedTranslation {
|
||||||
|
|
||||||
private @NotNull String key;
|
private @NotNull String key;
|
||||||
private @NotNull Translation translation;
|
private @Nullable Translation translation;
|
||||||
|
|
||||||
public KeyedTranslation(@NotNull String key, @NotNull Translation translation) {
|
public KeyedTranslation(@NotNull String key, @Nullable Translation translation) {
|
||||||
this.key = key;
|
this.key = key;
|
||||||
this.translation = translation;
|
this.translation = translation;
|
||||||
}
|
}
|
||||||
@ -24,7 +25,7 @@ public class KeyedTranslation {
|
|||||||
this.key = key;
|
this.key = key;
|
||||||
}
|
}
|
||||||
|
|
||||||
public @NotNull Translation getTranslation() {
|
public @Nullable Translation getTranslation() {
|
||||||
return translation;
|
return translation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user