mirror of
https://github.com/TeamNewPipe/NewPipeExtractor
synced 2025-10-06 00:23:15 +02:00
Refactor Description constructor
This commit is contained in:
@@ -17,11 +17,7 @@ public class Description implements Serializable {
|
||||
|
||||
public Description(@Nullable final String content, final int type) {
|
||||
this.type = type;
|
||||
if (content == null) {
|
||||
this.content = "";
|
||||
} else {
|
||||
this.content = content;
|
||||
}
|
||||
this.content = Objects.requireNonNullElse(content, "");
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
|
Reference in New Issue
Block a user