Open migrator opened 10 years ago
summary: Not Defined
I've reported similar issue in October 2012 and cannot wait for resolution, see https://code.google.com/p/guava-libraries/issues/detail?id=1171 (the cause of NPE can be arbitrary so I feel weird of globally catching NPE, instead I suggested transforming null result to Optional which eventually showed to be consistent with JDK8).
status Not Defined creator: tomas.za...@gmail.com created at: Jul 9, 2014
I have a use case where I am transforming an
Optional
, transforming it into the value of a member variable. The issue: The member variable can be null so I'd like to convert it to an Optional if it exists.Proposal:
class Optional ... {
...
} (which reservations to typos and probably not catching NullPointerException in real implementation, instead checking for null)
relevance: 1