Skip to content

Many cases of missing Optional

pyjapc!74 (diffs) highlighted that in Java it is always possible that the return type is null, instead of the declared type. https://www.codebyamir.com/blog/stop-returning-null-in-java

A concrete example is IncaConfigurator.getAccelerator (CERN private link), which either returns null or an Accelerator type. In our generated type-stubs, this should really be marked as Optional[Accelerator], but is currently simply Accelerator.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information