review code.
This commit is contained in:
@@ -60,9 +60,9 @@ public class DataQuery<T> {
|
||||
return this;
|
||||
}
|
||||
|
||||
public DataQuery<T> only() {
|
||||
public T getOne() {
|
||||
wrapper.last(Const.LIMIT_1);
|
||||
return this;
|
||||
return dao.selectOne(wrapper);
|
||||
}
|
||||
|
||||
public T get() {
|
||||
|
||||
@@ -38,7 +38,7 @@ public class TransmittableThreadLocalSecurityContextHolderStrategy implements Se
|
||||
|
||||
@Override
|
||||
public void setContext(SecurityContext context) {
|
||||
Valid.notNull(context, "Only non-null SecurityContext instances are permitted");
|
||||
Valid.notNull(context, "only non-null SecurityContext instances are permitted");
|
||||
CONTEXT_HOLDER.set(context);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user