commit | d64b23fa1ab8cd90243c37ac6a8c15fb715793d7 | [log] [tgz] |
---|---|---|
author | hughkim <hugh0222.kim@samsung.com> | Mon Dec 03 19:48:16 2018 +0900 |
committer | Thomas Vachuska <tom@opennetworking.org> | Tue Mar 05 19:14:46 2019 +0000 |
tree | 1b4308ab6bb8d4e1f54951c3489863304edd68c8 | |
parent | 3c99ee77c2903aa15ab03b8cc2f8fed755ba3a6a [diff] |
Replaced String with StringBuffer when convert decimal to string. Change-Id: I0162b7d0fa377bf48060d275835f27738516e0e9
diff --git a/apps/pcep-api/src/main/java/org/onosproject/pcep/tools/PcepTools.java b/apps/pcep-api/src/main/java/org/onosproject/pcep/tools/PcepTools.java index 4f29226..e123b5c 100644 --- a/apps/pcep-api/src/main/java/org/onosproject/pcep/tools/PcepTools.java +++ b/apps/pcep-api/src/main/java/org/onosproject/pcep/tools/PcepTools.java
@@ -53,11 +53,11 @@ * @return a decimal string */ public static String toDecimalString(byte[] bytes) { - String str = ""; + StringBuffer buf = new StringBuffer(); for (int i = 0; i < bytes.length; i++) { - str += String.valueOf(bytes[i]); + buf.append(bytes[i]); } - return str; + return buf.toString(); } /**