Commit Graph

3 Commits

Author SHA1 Message Date
Tagir Valeev
c81981ee75 [java-intentions] Rename 'Wrap using' fixes with 'Adapt using'.
Not everything is actually wrapping. E.g., converting 'long' to 'int' via 'Math.toIntExact' is definitely not wrapping. The 'adapt' word looks more abstract and suitable for all the cases.

GitOrigin-RevId: 33e56b6e16a0362598ac8e3fc92ef2808a77dbe0
2022-04-06 15:56:09 +00:00
Bas Leijdekkers
223eeb0b0f WrapWithAdapterMethodCallFix: wrap with List.of() instead of Arrays.asList() on Java 9 and higher (IDEA-269380)
GitOrigin-RevId: f39f5c58348afb6b3c57dbc059860f940c6ec363
2021-05-19 10:44:07 +00:00
Dmitry Batkovich
713a1289c7 IDEA-146770 Suggest Math.toIntExact to convert long to int 2015-10-28 19:55:14 +03:00