lballabio / QuantLib-SWIG

QuantLib wrappers to other languages
Other
338 stars 282 forks source link

Enable different definition of macro QL_JAVA_INTERFACES by testing if it is already defined #623

Closed ralfkonrad closed 7 months ago

ralfkonrad commented 7 months ago

I'm using a slightly different approach for JAVA_AUTOCLOSEABLE here. Therefore, I need to define my own QL_JAVA_INTERFACES in upfront to reflect the changes made in #613 and we need to avoid the duplication of the definition of the QL_JAVA_INTERFACES macro.


Also, I have removed the import java.lang.AutoCloseable; for simplicity as classes in the java.lang packages are imported by default in java like Double or Boolean.