This action will force synchronization from Rainy/DocSys, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
package util;import java.text.SimpleDateFormat;import java.util.Date;/**** @version 1.0 2011年07月13日**/public abstract class DebugHelper {public static void print(String msg){System.out.println( getFileLineMethod(2) + "->>" + msg );}public static String getFileLineMethod() {return getFileLineMethod(2);}public static String getFileLineMethod(int n) {StackTraceElement traceElement = ((new Exception()).getStackTrace())[n];StringBuffer toStringBuffer = new StringBuffer("[").append(traceElement.getFileName()).append(" | ").append(traceElement.getLineNumber()).append(" | ").append(traceElement.getMethodName()).append("]");return toStringBuffer.toString();}public static String _FILE_() {StackTraceElement traceElement = ((new Exception()).getStackTrace())[1];return traceElement.getFileName();}public static String _FUNC_() {StackTraceElement traceElement = ((new Exception()).getStackTrace())[1];return traceElement.getMethodName();}public static int _LINE_() {StackTraceElement traceElement = ((new Exception()).getStackTrace())[1];return traceElement.getLineNumber();}public static String _TIME_() {Date now = new Date();SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");return sdf.format(now);}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。