Administrator лет назад: 4
Родитель
Сommit
e5f1d6f229

+ 0 - 2
src/main/java/com/goafanti/common/utils/DecimalCalculate.java

@@ -75,7 +75,6 @@ public class DecimalCalculate {
 	 *            表示表示需要精确到小数点以后几位。
 	 * @return 两个参数的商
 	 */
-	@SuppressWarnings("deprecation")
 	public static double div(double v1, double v2, int scale) {
 		if (scale < 0) {
 			throw new IllegalArgumentException("The scale must be a positive integer or zero");
@@ -94,7 +93,6 @@ public class DecimalCalculate {
 	 *            小数点后保留几位
 	 * @return 四舍五入后的结果
 	 */
-	@SuppressWarnings("deprecation")
 	public static double round(double v, int scale) {
 		if (scale < 0) {
 			throw new IllegalArgumentException("The scale must be a positive integer or zero");

+ 0 - 2
src/main/java/com/goafanti/core/websocket/SystemWebSocketHandler.java

@@ -4,7 +4,6 @@ import java.io.IOException;
 import java.util.Map;
 import java.util.concurrent.ConcurrentHashMap;
 
-import org.apache.shiro.SecurityUtils;
 import org.springframework.stereotype.Service;
 import org.springframework.web.socket.CloseStatus;
 import org.springframework.web.socket.TextMessage;
@@ -13,7 +12,6 @@ import org.springframework.web.socket.WebSocketMessage;
 import org.springframework.web.socket.WebSocketSession;
 
 import com.goafanti.common.utils.LoggerUtils;
-import com.goafanti.core.shiro.token.TokenManager;
 
 @Service
 public class SystemWebSocketHandler implements WebSocketHandler {