Repository navigation
fix null inputstream behavior - #193
Conversation
…mit_nullsourcedinputstream
|
it fails because the tests assume receiving a null source is correct for csv ; it's not.
|
|
The issue with accepting null source for generators that need one is that it is not clear why it stopped producing classes : was the plugin disabled ? Maybe we can warn instead of illegalargumentexception |
|
Now it warns in the tests. [main] WARN com.helger.jcodemodel.plugin.generators.csv.CSVGenerator - generator CSVGenerator did not receive a valid source, received NullSourced[] instead and again, the helloworld warns too [WARNING] generator HelloWorldGenerator2 received a source DirectSourced[inputStream=com.helger.base.io.nonblocking.NonBlockingByteArrayInputStream@4cbb217e] which is discarded. If multiple sources are provided, this may lead to runtime error |
|
Sounds like a plan :) |
|
@phax also you may have noticed I don't appear twice anymore on the commits. I changed my mail address on my local machine to the noreply of git, instead of n@mo . |
|
Okay cool - honestly I don't care about that one |
Uh oh!
There was an error while loading. Please reload this page.