Java tutorial
//package com.java2s; //License from project: Open Source License import android.util.Log; public class Main { public static void warning(String paramString) { Log.w("WLDroidGap", getMsgNotNull(paramString)); } public static void warning(String paramString, Throwable paramThrowable) { Log.w("WLDroidGap", getMsgNotNull(paramString), paramThrowable); } private static String getMsgNotNull(String paramString) { if (paramString == null) paramString = "null"; return paramString; } }