Some great inspections, quickfixes, tools. Well, only inspections at the moment.
- BigDecimal instantiation can be replaced with constant by stokito
- BigDecimal.compareTo(ZERO) can be replaced with signum() by stokito
- Atomic can be replaced with volatile
- Allocation should be cached (Enum.values(), new Gson(), ...)
- Heavyweight property delegation
- Declaration name is Java keyword
- Inline function leaks anonymous declaration
- Function won't be inlined; noinline callable references are a bit more expensive than noinline lambdas; function cannot be inlined if it is a receiver of an extension function
- <include layout="?themeAttribute"> requires Marshmallow
- <view class="@resource or ?themeAttribute"> is not supported
- <drawable android:tint and android:tintMode> require Lollipop
@TargetApi
should be replaced with@RequiresApi
- Use of reflective ObjectAnimator/PropertyValuesHolder
- Upcast to interface, e. g.
putExtra(listas Serializable
) (Java Only) - Method override from superclass, e. g.
@Overridefrom Runnable
,
overrideRunnable
fun run()