rdf4j
rdf4j copied to clipboard
GH-1090: added IllegalArgumentException when mimeTypes isEmpty in FileFormat.java
GitHub issue resolved: #1090
Briefly describe the changes proposed in this PR:
Instead of silently failing with the assert check previously used, an empty mimeType list now throws an IllegalArgumentException
assert !mimeTypes.isEmpty() : "mimeTypes must not be empty"
PR Author Checklist (see the contributor guidelines for more details):
- [x] my pull request is self-contained
- [x] I've added tests for the changes I made
- [x] I've applied code formatting (you can use
mvn process-resourcesto format from the command line) - [x] I've squashed my commits where necessary
- [x] every commit message starts with the issue number (GH-xxxx) followed by a meaningful description of the change
Also looks as if the Java formatting checks don't like something in your PR. You may want to run a mvn process-resources on your branch before committing/pushing.
Fixed the formatting issues and added the upgraded tests @jeenbroekstra.
@Sanchit-Trivedi I just noticed this is targeted against the develop branch. As this is a bug fix: could you rebase it against the main branch instead?
@jeenbroekstra
I did run the mvn process-resources and got a Successful message after running the command. Still, the Github actions fail.
Is there something else I need to do before running this command?
Also will this require rebasing ? I created the fork from the main branch only but just targeted the PR to the develop branch
At a guess: did you format and then make some other changes? It seems to complaining about your test code this time.
And no need to rebase if you started off main, we can just retarget this PR.
Marked this as stale to signal that the PR hasn't been active for a while and that we should consider closing it.