Avoid Java double brace initialization
TL;DR Avoid doing this: new HashMap<String, String>() {{ put("key", value); }}; Leak Trace I was recently looking at the following leak trace from LeakCanary: ┬─── │ GC Root: Global variable in native code │ ├─ com.bugsnag.android.AnrPlugin instan...
Jun 27, 20234 min read3.0K
