RefactoringMiner icon indicating copy to clipboard operation
RefactoringMiner copied to clipboard

List instantiation replaced with asList

Open pouryafard75 opened this issue 2 years ago • 2 comments

https://github.com/google/truth/commit/1768840bf1e69892fd2a23776817f620edfed536

image image

pouryafard75 avatar Mar 16 '23 22:03 pouryafard75

@pouryafard75

In introduced sub-expression mappings instead of a CompositeReplacement with additionally matched statements, because in the second case the add method call names were matched with containsNoDuplicates

Screenshot from 2023-04-10 20-49-20

tsantalis avatar Apr 11 '23 01:04 tsantalis

@tsantalis The problem with the list instantiation has been resolved. However, I believe this issue must be re-opened since we discussed the iterable() method is inlined.

pouryafard75 avatar Apr 29 '23 04:04 pouryafard75