feat:编码规范性修改

pg_adapter
wangxy 9 months ago
parent 0b7f812ae0
commit 413f297b96

@ -207,7 +207,7 @@ public class QuManager {
//数据分组 //数据分组
for (QuExportDTO item : dtoList) { for (QuExportDTO item : dtoList) {
// 空白的ID // 空白的ID
if (org.springframework.util.StringUtils.isEmpty(item.getNo())) { if (StringUtils.isEmpty(item.getNo())) {
continue; continue;
} }
Integer key; Integer key;

@ -894,7 +894,7 @@ public class Convert
*/ */
public static String toSBC(String input, Set<Character> notConvertSet) public static String toSBC(String input, Set<Character> notConvertSet)
{ {
char c[] = input.toCharArray(); char[] c = input.toCharArray();
for (int i = 0; i < c.length; i++) for (int i = 0; i < c.length; i++)
{ {
if (null != notConvertSet && notConvertSet.contains(c[i])) if (null != notConvertSet && notConvertSet.contains(c[i]))
@ -936,7 +936,7 @@ public class Convert
*/ */
public static String toDBC(String text, Set<Character> notConvertSet) public static String toDBC(String text, Set<Character> notConvertSet)
{ {
char c[] = text.toCharArray(); char[] c = text.toCharArray();
for (int i = 0; i < c.length; i++) for (int i = 0; i < c.length; i++)
{ {
if (null != notConvertSet && notConvertSet.contains(c[i])) if (null != notConvertSet && notConvertSet.contains(c[i]))

@ -292,7 +292,7 @@ public class IpUtils
String[] s1 = ipWildCard.split("\\."); String[] s1 = ipWildCard.split("\\.");
String[] s2 = ip.split("\\."); String[] s2 = ip.split("\\.");
boolean isMatchedSeg = true; boolean isMatchedSeg = true;
for (int i = 0; i < s1.length && !s1[i].equals("*"); i++) for (int i = 0; i < s1.length && !"*".equals(s1[i]); i++)
{ {
if (!s1[i].equals(s2[i])) if (!s1[i].equals(s2[i]))
{ {

@ -6,7 +6,6 @@ package com.ruoyi.common.utils.excel;
import com.ruoyi.common.annotation.ExcelField; import com.ruoyi.common.annotation.ExcelField;
import org.apache.commons.compress.utils.Lists; import org.apache.commons.compress.utils.Lists;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.poi.hssf.usermodel.HSSFDateUtil;
import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException; import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.apache.poi.ss.usermodel.*; import org.apache.poi.ss.usermodel.*;
@ -21,7 +20,6 @@ import java.lang.reflect.Field;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.text.DecimalFormat; import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Collections; import java.util.Collections;
import java.util.Comparator; import java.util.Comparator;

@ -216,7 +216,7 @@ public class HttpUtils
String ret = ""; String ret = "";
while ((ret = br.readLine()) != null) while ((ret = br.readLine()) != null)
{ {
if (ret != null && !ret.trim().equals("")) if (StringUtils.isNotBlank(ret) && !ret.trim().isEmpty())
{ {
result.append(new String(ret.getBytes(StandardCharsets.ISO_8859_1), StandardCharsets.UTF_8)); result.append(new String(ret.getBytes(StandardCharsets.ISO_8859_1), StandardCharsets.UTF_8));
} }

@ -32,7 +32,7 @@ public class Md5Utils
return null; return null;
} }
private static final String toHex(byte hash[]) private static final String toHex(byte[] hash)
{ {
if (hash == null) if (hash == null)
{ {

Loading…
Cancel
Save