Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NIFI-2816 - Clean typos across the code #1057

Closed
wants to merge 1 commit into from
Closed

Conversation

trixpan
Copy link
Contributor

@trixpan trixpan commented Sep 23, 2016

part 1 of typo hunting

Copy link
Contributor

@pvillard31 pvillard31 left a comment

Choose a reason for hiding this comment

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

Few typos :)

@@ -86,9 +86,9 @@ public int read() {
}

/**
* Returns the byte that would be read without changing the posiiton
* Returns the byte that would be read without changing the positon
Copy link
Contributor

Choose a reason for hiding this comment

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

position

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed

*
* @return the byte that would be read without changing the posiiton
* @return the byte that would be read without changing the positon
Copy link
Contributor

Choose a reason for hiding this comment

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

position

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed

@@ -164,7 +164,7 @@ public void commit() {
* {@link org.apache.nifi.processor.Processor#onTrigger} commits or rolls back the
* session
*/
public void clearCommited() {
public void clearCommitted() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it a safe change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good question. To be honest, I was relying on good old travis to tell.

Seems like it passes but yes, we are renaming a public method.

@@ -47,7 +47,7 @@ public void setMaxTimerDrivenThreadCount(Integer maxTimerDrivenThreadCount) {
* @return maximum number of event driven thread this NiFi has available
*/
@ApiModelProperty(
value = "The maximum number of event driven threads the NiFi has avaiable."
value = "The maximum number of event driven threads the NiFi has avaliable."
Copy link
Contributor

Choose a reason for hiding this comment

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

available

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed

@@ -25,7 +25,7 @@
* This password hashing system tries to thwart off-line password
* cracking using a computationally-intensive hashing algorithm,
* based on Bruce Schneier's Blowfish cipher. The work factor of
* the algorithm is parameterised, so it can be increased as
* the algorithm is parametrised, so it can be increased as
Copy link
Contributor

Choose a reason for hiding this comment

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

parametrized

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed

@trixpan
Copy link
Contributor Author

trixpan commented Sep 23, 2016

@pvillard31 note to myself: Never try to hunt typos after midnight ... 😃

@trixpan
Copy link
Contributor Author

trixpan commented Sep 24, 2016

@pvillard31 I did a second sweep on this commit and the following public classes or methods have also been changed

org.apache.nifi.cluster.coordination.http.endpoints.ConnectionStatusEndpointMerger
org.apache.nifi.cluster.coordination.http.endpoints.DropRequestEndpointMerger;

What would be your suggesting? Rename the classes and public methods or leave them untouched?

One idea I had - not sure if it is adequate - is to re-introduce the removed methods/classes but add a deprecation annotation (part of the second commit to this PR)

@pvillard31
Copy link
Contributor

@trixpan, to be honest, about classes/methods renaming I'll concede to our PMC authority.

@trixpan
Copy link
Contributor Author

trixpan commented Sep 25, 2016

@joewitt , @bbende

suggestions? comments?

@bbende
Copy link
Contributor

bbende commented Sep 26, 2016

@trixpan @pvillard31 since the three changes in question are not part of the public API we should be ok to change them as long as it is done on a second number version change (1.1.0 and not 1.0.1) which is what we are planning anyway, this should be consistent with our versioning/compatibility guide https://cwiki.apache.org/confluence/display/NIFI/Version+Scheme+and+API+Compatibility

@pvillard31
Copy link
Contributor

@bbende in that case, maybe the @Deprecated added in the code by @trixpan are not necessary. What do you think?

@bbende
Copy link
Contributor

bbende commented Sep 26, 2016

@pvillard31 I agree, lets remove the deprecated versions and just have the corrected versions, I'm a +1 after that change, and thanks to @trixpan for putting this together, didn't realize how many typos we had!

@joewitt
Copy link
Contributor

joewitt commented Sep 26, 2016

yeah i def don't think we need deprecation notes for those. Should just be able to fix the typos.

@joewitt
Copy link
Contributor

joewitt commented Sep 26, 2016

also @trixpan and reviewers: Thanks for doing this plus stale branch hunting. It is greatly appreciated.

@trixpan
Copy link
Contributor Author

trixpan commented Sep 26, 2016

@bbende there's a few hundred more but I decided to split the task to avoid having to rebase non-stop! 😎

@joewitt pleased to help, next time the kangaroo steak bill is yours. 😃

@pvillard31
Copy link
Contributor

Merging...

@asfgit asfgit closed this in 446cd44 Sep 26, 2016
@trixpan trixpan deleted the typos branch September 27, 2016 09:20
trixpan added a commit to trixpan/nifi that referenced this pull request Sep 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants