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