Tagged articles
1 articles
Page 1 of 1
Meituan Technology Team
Meituan Technology Team
Mar 9, 2017 · Mobile Development

Enhancing Android Lint: HashMap Detection with JDK 7 Generics and Fixing Retrolambda Toast False Positives

This article explains how Meituan’s Android Lint was extended to reliably detect HashMap usage under JDK 7 generics—even when declarations and assignments are separated—by leveraging JavaContext.getType, and how a false‑positive Toast‑in‑lambda bug caused by Retrolambda was eliminated through explicit LambdaExpression checks and reflective issue‑registry replacement.

ASTAndroid LintHashMap detection
0 likes · 13 min read
Enhancing Android Lint: HashMap Detection with JDK 7 Generics and Fixing Retrolambda Toast False Positives