Java tutorial
//package com.java2s; import android.util.Log; public class Main { public static void debug(String paramString) { Log.d("WLDroidGap", getMsgNotNull(paramString)); } public static void debug(String paramString, Throwable paramThrowable) { Log.d("WLDroidGap", getMsgNotNull(paramString), paramThrowable); } private static String getMsgNotNull(String paramString) { if (paramString == null) paramString = "null"; return paramString; } }