修复 sa-token-reactor-spring-boot3-starter 模块代码警告

This commit is contained in:
click33 2023-05-16 15:33:43 +08:00
parent 27b4e31061
commit b1e7f8471e
3 changed files with 6 additions and 5 deletions

View File

@ -145,7 +145,8 @@ public class SaReactorFilter implements SaFilter, WebFilter {
});
} catch (StopMatchException e) {
// StopMatchException 异常代表停止匹配进入Controller
} catch (Throwable e) {
// 1. 获取异常处理策略结果
String result = (e instanceof BackResultException) ? e.getMessage() : String.valueOf(error.run(e));

View File

@ -122,7 +122,7 @@ public class SaRequestForReactor implements SaRequest {
*/
public String getUrl() {
String currDomain = SaManager.getConfig().getCurrDomain();
if(SaFoxUtil.isEmpty(currDomain) == false) {
if( ! SaFoxUtil.isEmpty(currDomain)) {
return currDomain + this.getRequestPath();
}
return request.getURI().toString();

View File

@ -1,6 +1,3 @@
/**
* sa-token集成Reactor响应式编程的各个组件
*/
/*
* Copyright 2020-2099 sa-token.cc
*
@ -16,4 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Sa-Token 集成 Reactor 响应式编程的各个组件
*/
package cn.dev33.satoken.reactor;