mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-29 22:27:33 +00:00
[Add] Framework-API 为 Author 添加仅 name 参数的构造方法;
[Add] Author 添加仅有 name 参数的构造方法 '<init>(String)';
This commit is contained in:
parent
521fdd174c
commit
f0e0956580
@ -30,6 +30,10 @@ public class Author {
|
||||
private final String url;
|
||||
private final String email;
|
||||
|
||||
public Author(String name) {
|
||||
this(name, null, null);
|
||||
}
|
||||
|
||||
public Author(String name, String url, String email) {
|
||||
this.name = Objects.requireNonNull(name);
|
||||
this.url = url;
|
||||
|
Loading…
Reference in New Issue
Block a user