Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 24, 2018. It is now read-only.

Using custom string equalizers during diff#1

Merged
KengoTODA merged 3 commits intoKengoTODA:masterfrom
andreaskumlehn:master
May 22, 2014
Merged

Using custom string equalizers during diff#1
KengoTODA merged 3 commits intoKengoTODA:masterfrom
andreaskumlehn:master

Conversation

@andreaskumlehn
Copy link
Contributor

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.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Moved the creation of the default Equalizer from constructor of DiffRowGenerator to its builder

@KengoTODAKengoTODA self-assigned thisMay 18, 2014
@KengoTODA
Copy link
Owner

Thanks for your PR.

IMHO, it is better to:

@andreaskumlehn
Copy link
ContributorAuthor

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.

KengoTODA pushed a commit that referenced this pull requestMay 20, 2014
KengoTODA pushed a commit that referenced this pull requestMay 20, 2014
Now we have 2 classes which has to care about `ignoreWhiteSpace`and here is 2 bugs:1. it converts `null` to empty string2. `Builder.ignoreWhiteSpace` doesn't work when we set custom   EqualizerThis change solves these problem.
@KengoTODA
Copy link
Owner

Well, this change has one problem; there are 2 classes which is responsible to handleignoreWhiteSpaces flag. Previously onlyBuilder was responsible, but now both ofBuilder and custom Equalizer are responsible. And if you set custom Equalizer,Builder.ignoreWhiteSpaces doesn't work.

My suggestion ishere, how do you think? I just remove this responsibility from Equalizer.

And, current your implementation convertsnull to empty string, but it breaks backward compatibility.

@andreaskumlehn
Copy link
ContributorAuthor

Looks good. Thanks for fixing it.

I did not have a look at theNullable annotations as they were in place before my fix. Looks much better now.

@KengoTODAKengoTODA merged commitcf9a759 intoKengoTODA:masterMay 22, 2014
KengoTODA pushed a commit that referenced this pull requestMay 22, 2014
@KengoTODA
Copy link
Owner

I've merged this branch to master. Thanks@andreaskumlehn.

You can download artifact from Maven central later. Its version is1.5.0.

@KengoTODA
Copy link
Owner

@andreaskumlehn
Copy link
ContributorAuthor

Thanks a lot @eller86 :)

Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

No reviews

Assignees

@KengoTODAKengoTODA

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@andreaskumlehn@KengoTODA

[8]ページ先頭

©2009-2026 Movatter.jp