mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
add @Nullable in StringRef
This commit is contained in:
@@ -92,10 +92,12 @@ public class StringRef {
|
||||
return that == this || that instanceof StringRef && toString().equals(that.toString());
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static String toString(@Nullable StringRef ref) {
|
||||
return ref != null ? ref.getString() : null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static StringRef fromString(@Nullable String source) {
|
||||
return source == null ? null : new StringRef(source);
|
||||
}
|
||||
@@ -105,6 +107,7 @@ public class StringRef {
|
||||
return new StringRef(source == null ? "" : source);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static StringRef fromStream(@NotNull DataInput in, @NotNull AbstractStringEnumerator store) throws IOException {
|
||||
final int nameId = DataInputOutputUtil.readINT(in);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user