From 9b1d1e476f3dcbf00ed503f5d0e6514855197079 Mon Sep 17 00:00:00 2001 From: zhouyanbing Date: Thu, 24 Jun 2021 20:32:21 +0800 Subject: [PATCH] =?UTF-8?q?SonarQube=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../user/auth/controller/VerificationController.java | 3 +-- .../user/auth/controller/dto/request/TenantRegisterReqDto.java | 2 -- src/main/java/org/edgegallery/user/auth/utils/Consts.java | 3 +++ 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/edgegallery/user/auth/controller/VerificationController.java b/src/main/java/org/edgegallery/user/auth/controller/VerificationController.java index 6579337..36d1f4b 100644 --- a/src/main/java/org/edgegallery/user/auth/controller/VerificationController.java +++ b/src/main/java/org/edgegallery/user/auth/controller/VerificationController.java @@ -109,8 +109,7 @@ public class VerificationController extends BeGenericServlet { @GetMapping(value = "/verifycode-image/precheck", produces = MediaType.APPLICATION_JSON_VALUE) @ResponseBody @ApiOperation(value = "check image verification code", response = Object.class) - public ResponseEntity preCheckImgVerificationCode(HttpServletRequest httpServletRequest) - throws IOException { + public ResponseEntity preCheckImgVerificationCode(HttpServletRequest httpServletRequest) { return buildResponse(identityService.preCheckImgVerificationCode(httpServletRequest)); } } diff --git a/src/main/java/org/edgegallery/user/auth/controller/dto/request/TenantRegisterReqDto.java b/src/main/java/org/edgegallery/user/auth/controller/dto/request/TenantRegisterReqDto.java index 9802340..4616171 100644 --- a/src/main/java/org/edgegallery/user/auth/controller/dto/request/TenantRegisterReqDto.java +++ b/src/main/java/org/edgegallery/user/auth/controller/dto/request/TenantRegisterReqDto.java @@ -16,8 +16,6 @@ package org.edgegallery.user.auth.controller.dto.request; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import javax.validation.constraints.Pattern; diff --git a/src/main/java/org/edgegallery/user/auth/utils/Consts.java b/src/main/java/org/edgegallery/user/auth/utils/Consts.java index 40d0726..01b8a6d 100644 --- a/src/main/java/org/edgegallery/user/auth/utils/Consts.java +++ b/src/main/java/org/edgegallery/user/auth/utils/Consts.java @@ -38,6 +38,9 @@ public class Consts { public static final long MILLIS_ONE_DAY = 1 * 24 * 3600 * 1000L; public static final class PwModifyScene { + private PwModifyScene() { + } + public static final int FIRSTLOGIN = 1; public static final int EXPIRED = 2; -- Gitee