HCL-TECH-SOFTWARE / domino-jnx

Modern Domino Java API based on JNA access to Domino's C API
https://opensource.hcltechsw.com/domino-jnx/
Apache License 2.0
15 stars 3 forks source link

Change NamedFileElement#getMimeType to return an Optional<String> #312

Open jesse-gallagher opened 2 years ago

jesse-gallagher commented 2 years ago

This is similar to https://github.com/HCL-TECH-SOFTWARE/domino-jnx/issues/311 , though less required. Currently, this method will likely return an empty string for elements without MIME types, but it'd be good to make it an Optional for explicitness.