Modified:
branches/branch_5_0/connector-j/src/com/mysql/jdbc/log/LogUtils.java
Log:
extract message String as constant.
Modified: branches/branch_5_0/connector-j/src/com/mysql/jdbc/log/LogUtils.java
===================================================================
--- branches/branch_5_0/connector-j/src/com/mysql/jdbc/log/LogUtils.java 2006-05-12
00:02:28 UTC (rev 5256)
+++ branches/branch_5_0/connector-j/src/com/mysql/jdbc/log/LogUtils.java 2006-05-12
14:03:10 UTC (rev 5257)
@@ -27,7 +27,9 @@
public class LogUtils {
- private static final String LINE_SEPARATOR = System
+ public static final String CALLER_INFORMATION_NOT_AVAILABLE = "Caller information not
available";
+
+ private static final String LINE_SEPARATOR = System
.getProperty("line.separator");
private static final int LINE_SEPARATOR_LENGTH = LINE_SEPARATOR.length();
@@ -121,7 +123,7 @@
public static String findCallingClassAndMethod(Throwable t) {
String stackTraceAsString = Util.stackTraceToString(t);
- String callingClassAndMethod = "Caller information not available";
+ String callingClassAndMethod = CALLER_INFORMATION_NOT_AVAILABLE;
int endInternalMethods = stackTraceAsString
.lastIndexOf("com.mysql.jdbc");
| Thread |
|---|
| • Connector/J commit: r5257 - branches/branch_5_0/connector-j/src/com/mysql/jdbc/log | eherman | 12 May |