In short, java-diff-utils assumes that a hunk is a line on its own.
I'm parsing the output of git log -p that produces "inline" hunks like that:
@@ -4,6 +4,9 @@ import com.github.javaparser.JavaParser;
and that is not supported. I have no idea that format is OK with the unidiff specifications but the change to support that hunk format seems minimal.