Commit Graph

5 Commits

Author SHA1 Message Date
Tagir Valeev
da261a7705 [java-inspections] Java8MapForEachInspection: disable when entry getter is used in void context
Also avoid replacing expression with identifier, as this creates illegal PSI
Fixes EA-537547 - IOE: PsiExpressionStatementImpl.replaceChildInternal

GitOrigin-RevId: 7fd9c0f98165a2f5b6ad74154fa1b5b701610ee7
2022-06-27 13:22:11 +00:00
Bas Leijdekkers
93c83aec85 indicate method calls with '()' in inspection names
GitOrigin-RevId: f92b0d4bae7978663cfde0560dea122a1a096724
2019-10-15 11:04:20 +00:00
Tagir Valeev
5561cb9bc7 Replace with Map.forEach -> Map.forEach can be used 2018-09-07 15:29:01 +07:00
Tagir Valeev
86b7bcfe0a IDEA-168296 Comments are duplicated when I replace Map.entrySet() loop with Map.forEach 2017-02-17 12:15:58 +07:00
Tagir Valeev
5c7ab507f9 IDEA-146716 Add inspection for "Iteration over entrySet() can be replaced with forEach" 2017-02-07 11:40:25 +07:00