AbstractComponent에서 분리

master
mjkhan21 2 years ago
parent 73782f5533
commit 6ab914d5a2

@ -4,7 +4,7 @@ import java.util.Locale;
/** () .
*/
public class Access extends AbstractComponent {
public class Access {
protected static final ThreadLocal<Access> current = new ThreadLocal<>();
private String
@ -39,7 +39,7 @@ public class Access extends AbstractComponent {
* @return
*/
public String getId() {
return ifEmpty(id, id = "access-" + System.currentTimeMillis());
return Assert.ifEmpty(id, id = "access-" + System.currentTimeMillis());
}
/** .
@ -94,7 +94,7 @@ public class Access extends AbstractComponent {
* @return Access
*/
public static Access current() {
return ifEmpty(current.get(), Access::new);
return Assert.ifEmpty(current.get(), Access::new);
}
/** Access .
@ -183,7 +183,7 @@ public class Access extends AbstractComponent {
* @return Access
*/
public Access setJsonResponse(String header) {
this.jsonResponse = !isEmpty(header) && header.contains("json");
this.jsonResponse = !Assert.isEmpty(header) && header.contains("json");
return this;
}

Loading…
Cancel
Save