Commit Graph

5 Commits

Author SHA1 Message Date
Tagir Valeev
49f4397ba0 [java-intentions] More preview tests
GitOrigin-RevId: 4d6a5487576dbbc4aca9c89b067eec8218aff686
2022-07-29 17:55:15 +00:00
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
Ilyas Selimov
5fbb440207 IDEA-228553 - fix a positive test on Paths.get
GitOrigin-RevId: 261c5649b2890b4a690a5ac916bc02c555af551e
2020-05-29 16:26:25 +03:00
Ilyas Selimov
3d8460f557 IDEA-228553 - separated two intention actions between different language levels not to prevent users confusing what to choose
GitOrigin-RevId: 76677d371b01ba501716756d9ea1dafa61c85404
2020-05-28 15:01:30 +03:00
Tagir Valeev
661388f0c2 WrapWithAdapterMethodCallFix replaces individual cases
WrapArrayToArraysAsListFix, WrapLongWithMathToIntExactFix, WrapStringWithFileFix are united into WrapWithAdapterMethodCallFix. Also Paths.get(), Collections.singleton(), Collections.singletonList(), Arrays.stream() wrappers added

Fixes IDEA-175129 Suggest to wrap a value with `Collections.singleton*()`
2017-08-25 14:33:41 +07:00