Commit 107f06d8d8963cf098c181f0a5a1ac9f838e5a04

Authored by 孙向锦
1 parent c8b510aa

海亮定制

Showing 1 changed file with 2 additions and 2 deletions
海亮定制.md
@@ -491,7 +491,7 @@ String content = "hex:" + bytesToHexString(title.getBytes("GBK")) @@ -491,7 +491,7 @@ String content = "hex:" + bytesToHexString(title.getBytes("GBK"))
491 public static String bytesToHexString(byte[] src) { 491 public static String bytesToHexString(byte[] src) {
492 StringBuilder stringBuilder = new StringBuilder(""); 492 StringBuilder stringBuilder = new StringBuilder("");
493 if (src == null || src.length <= 0) { 493 if (src == null || src.length <= 0) {
494 - return null; 494 + return "";
495 } 495 }
496 for (int i = 0; i < src.length; i++) { 496 for (int i = 0; i < src.length; i++) {
497 int v = src[i] & 0xFF; 497 int v = src[i] & 0xFF;
@@ -892,7 +892,7 @@ public static String bytesToHexString(byte[] src) { @@ -892,7 +892,7 @@ public static String bytesToHexString(byte[] src) {
892 public static String bytesToHexString(byte[] src) { 892 public static String bytesToHexString(byte[] src) {
893 StringBuilder stringBuilder = new StringBuilder(""); 893 StringBuilder stringBuilder = new StringBuilder("");
894 if (src == null || src.length <= 0) { 894 if (src == null || src.length <= 0) {
895 - return null; 895 + return "";
896 } 896 }
897 for (int i = 0; i < src.length; i++) { 897 for (int i = 0; i < src.length; i++) {
898 int v = src[i] & 0xFF; 898 int v = src[i] & 0xFF;