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 491 public static String bytesToHexString(byte[] src) {
492 492 StringBuilder stringBuilder = new StringBuilder("");
493 493 if (src == null || src.length <= 0) {
494   - return null;
  494 + return "";
495 495 }
496 496 for (int i = 0; i < src.length; i++) {
497 497 int v = src[i] & 0xFF;
... ... @@ -892,7 +892,7 @@ public static String bytesToHexString(byte[] src) {
892 892 public static String bytesToHexString(byte[] src) {
893 893 StringBuilder stringBuilder = new StringBuilder("");
894 894 if (src == null || src.length <= 0) {
895   - return null;
  895 + return "";
896 896 }
897 897 for (int i = 0; i < src.length; i++) {
898 898 int v = src[i] & 0xFF;
... ...