1. 缺少 非空判断
error log : Missing nullability on method `getSecurityRestrictPwd` return [MissingNullability]
import android.annotation.NonNull;
@NonNull String pwd
实现对参数或返回值的注解
2. 方法名称规范要求(实际功能和名称匹配)
error log
error: Methods creating an Intent should be named `create<Foo>Intent()`, was `getLaunchIntent` [IntentBuilderName]
解决根据提示修改方法名 createLaunchIntent(), 才能符合规范
error log
error: Unexpected tense; probably meant `enabled`, was `getSecuritySettingsEnable` [MethodNameTense]
解决根据提示修改为getSecuritySettings() 符合规范
error log
error: Acronyms should not be capitalized in method names: was `getWlanAPListState`, should this be `getWlanApListState`? [AcronymName]
解决 根据提示修改方法名中连续的大写. 修改为getWlanApListState, 符合规范
error log
error: Method parameter should be Collection<> (or subclass) instead of raw array; was `ScanResult[]` [ArrayReturn]
参数传递使用结合 修改ScanResult[] ----> List<ScanResult>