[libbluray-devel] Use StringBuffer
hpi1
git at videolan.org
Wed May 3 15:08:22 CEST 2017
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Apr 3 14:52:49 2017 +0300| [7eb39f1b61177f6d2492f6aad1ff82921dc6561a] | committer: hpi1
Use StringBuffer
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=7eb39f1b61177f6d2492f6aad1ff82921dc6561a
---
src/libbluray/bdj/java-j2se/org/videolan/PortingHelper.java | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/libbluray/bdj/java-j2se/org/videolan/PortingHelper.java b/src/libbluray/bdj/java-j2se/org/videolan/PortingHelper.java
index 7cf40b1e..1cb5f43d 100644
--- a/src/libbluray/bdj/java-j2se/org/videolan/PortingHelper.java
+++ b/src/libbluray/bdj/java-j2se/org/videolan/PortingHelper.java
@@ -30,12 +30,15 @@ public class PortingHelper {
}
public static String dumpStack(Thread t) {
- String dump = "";
StackTraceElement e[] = t.getStackTrace();
if (e != null) {
- for (int i = 0; i < e.length; i++)
- dump += "\n\t" + e[i].toString();
+ StringBuffer dump = new StringBuffer();
+ for (int i = 0; i < e.length; i++) {
+ dump.append("\n\t");
+ dump.append(e[i].toString());
+ }
+ return dump.toString();
}
- return dump;
+ return "";
}
}
More information about the libbluray-devel
mailing list