podam icon indicating copy to clipboard operation
podam copied to clipboard

Optional<List<String>> generated as Optional<List<Object>>

Open kortov opened this issue 4 years ago • 2 comments

Hello, I stumbled upon a bug, where Optional<List> as field is manufactured as Optional<List>. I expected Optional<List> there. Here's a repro https://github.com/kortov/podam-list-bug-repro/blob/main/bug-repro/src/test/java/org/example/OptionalTest.java#L21

image

I know that Optional as a field is a bad practice but actually, I wrote for my purposes a similar to Optional generic class and found this bug with podam and I changed class to Optional for clarity.

kortov avatar Mar 23 '22 14:03 kortov

Fixed in podam 7.2.9

daivanov avatar Apr 10 '22 10:04 daivanov

Thank you!

kortov avatar Apr 11 '22 06:04 kortov