package com.karumi.headerrecyclerview.sample.util;

import android.util.Log;

/**
 * Created by cmicat on 2016/1/27.
 */
public class DebugHelper {
    /**
     * log这个方法就可以显示超链
     */
    private static String getCallMethodAndLine() {
        String result = "at ";
        StackTraceElement thisMethodStack = (new Exception()).getStackTrace()[2];
        result += thisMethodStack.getClassName() + ".";
        result += thisMethodStack.getMethodName();
        result += "(" + thisMethodStack.getFileName();
        result += ":" + thisMethodStack.getLineNumber() + ")  ";
        return result;
    }

    public static void logMethod(String tag) {
        Log.v(tag, getCallMethodAndLine());
    }

}

@@ -82,39 +82,27 @@
 %0A * 
-Created by cmicat on 2016/1/27.
+Debug utility class
 %0A */
@@ -133,48 +133,8 @@
 r %7B%0A
-    /**%0A     * log%E8%BF%99%E4%B8%AA%E6%96%B9%E6%B3%95%E5%B0%B1%E5%8F%AF%E4%BB%A5%E6%98%BE%E7%A4%BA%E8%B6%85%E9%93%BE%0A     */%0A  
   pr
@@ -174,28 +174,24 @@
 AndLine() %7B%0A
-    
     String r
@@ -209,20 +209,16 @@
  %22;%0A    
-  
-  
 StackTra
@@ -283,20 +283,16 @@
 e()%5B2%5D;%0A
-    
     resu
@@ -335,20 +335,16 @@
  + %22.%22;%0A
-    
     resu
@@ -378,36 +378,32 @@
 thodName();%0A    
-  
-  
 result += %22(%22 + 
@@ -433,20 +433,16 @@
 Name();%0A
-    
     resu
@@ -494,20 +494,16 @@
  %22)  %22;%0A
-    
     retu
@@ -519,15 +519,104 @@
 ;%0A  
-  
 %7D%0A%0A  
+/**%0A   * You can call this method to log current method%0A   *%0A   * @param tag LOG_TAG%0A   */%0A
   pu
@@ -656,20 +656,16 @@
  tag) %7B%0A
-    
     Log.
@@ -698,15 +698,12 @@
 e());%0A  
-  %7D%0A
+%7D
 %0A%7D%0A

update javadoc in DebugHelper.java