| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…g> instances to compare lines during diffs
There was a problem hiding this comment.
Moved the creation of the default Equalizer from constructor of DiffRowGenerator to its builder
Sorry, something went wrong.
|
Thanks for your PR. IMHO, it is better to:
|
Sorry, something went wrong.
|
Backwards compatibility is intact as I did not touch the publicly accessible methods. About the nullness, I pushed a fix. I won't have time to create tests, sorry about that. |
Sorry, something went wrong.
Now we have 2 classes which has to care about `ignoreWhiteSpace` and here is 2 bugs: 1. it converts `null` to empty string 2. `Builder.ignoreWhiteSpace` doesn't work when we set custom Equalizer This change solves these problem.
|
Well, this change has one problem; there are 2 classes which is responsible to handle ignoreWhiteSpaces flag. Previously only Builder was responsible, but now both of Builder and custom Equalizer are responsible. And if you set custom Equalizer, Builder.ignoreWhiteSpaces doesn't work. My suggestion is here, how do you think? I just remove this responsibility from Equalizer. And, current your implementation converts null to empty string, but it breaks backward compatibility. |
Sorry, something went wrong.
|
Looks good. Thanks for fixing it. I did not have a look at the Nullable annotations as they were in place before my fix. Looks much better now. |
Sorry, something went wrong.
|
I've merged this branch to master. Thanks @andreaskumlehn. You can download artifact from Maven central later. Its version is 1.5.0. |
Sorry, something went wrong.
Sorry, something went wrong.
|
Thanks a lot @eller86 :) |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Added support to inject a custom Equalizer into the builder of the DiffRowGenerator.
This modification enabled us to use regexes during diff to ignore minor diffs while comparing lines of revisions.