View Code39Extended.java
public class Code39Extended {
protected Code39Extended() {
// Empty
}
private static final Character NULL = '\0';
// <https://en.wikipedia.org/wiki/Code_39#Full_ASCII_Code_39>
private static final HashMap<String, HashMap<String, Character>> EXTENDED = new HashMap<String, HashMap<String, Character>>() {
View Gson.getJsonElement
// Uses GSON library
// getJsonElement(jsonObject, "{errors}{email}[reasons:0]")
// Retrieves the first JsonElement of the JsonArray "reasons" of the JsonObject "email" of the JsonObject "errors"... in one line ;)
public static JsonElement getJsonElement(@NonNull final JsonObject jsonObject, final String string) {
// matches all
if (TextUtils.isEmpty(string)) {
return jsonObject;
}
// bad formats
View Android.pro
# <https://code.google.com/p/android/issues/detail?id=78377#c188>
# <https://stackoverflow.com/questions/30526173>
-keepattributes **
-keep class !android.support.v7.internal.view.menu.**, ** {
!private <fields>;
protected <fields>;
public <fields>;
<methods>;
}
#-dontpreverify
View Log
package me.shkschneider.skeleton.helper;
import android.text.TextUtils;
import android.util.Log;
/**
* Improved android.util.Log.
*
* Logs class and method automatically:
* [MyApplication onCreate():34] Hello, world!