Skip to content

Polish #11143

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

Closed
wants to merge 1 commit into from
Closed

Polish #11143

wants to merge 1 commit into from

Conversation

izeye
Copy link
Contributor

@izeye izeye commented Nov 24, 2017

This PR fixes some typos and polishes trivial stuff.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 24, 2017
Copy link
Member

@snicoll snicoll left a comment

Choose a reason for hiding this comment

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

Thanks again for the PR. I've a few questions, can you please review?

/**
* An example attribute that requires a {@link Converter}.
* An example attribute that requires a {@link org.springframework.core.convert.converter.Converter}.
Copy link
Member

Choose a reason for hiding this comment

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

Can you expand why you think this is a good idea?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@snicoll I'm not sure this is generally acceptable or just my preference but the rationale behind the change is that when an imported class is referenced only in Javadoc, to prevent it from cluttering import section, I usually prefer to use FQN in Javadoc instead of import.

Copy link
Member

Choose a reason for hiding this comment

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

That sounds totally reasonable but that's not what we do here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@snicoll Sorry but I don't get it. Could you give me some more pointer for the last comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@snicoll I guess you meant you want to revert the change, right?

Copy link
Member

Choose a reason for hiding this comment

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

I do. Here is an example that we use quite a lot.

Having said that, I've seen that is not consistent, see AopAutoConfiguration for instance. I suggest to revert for now and I'll raise that at the next team call to check with the rest of the team.

@@ -43,7 +43,7 @@
* <p>
* Using this annotation will disable full auto-configuration and instead apply only
* configuration relevant to WebFlux tests (i.e. {@code @Controller},
* {@code @ControllerAdvice}, {@code @JsonComponent}, {@code Converter}, and
* {@code @ControllerAdvice}, {@code @JsonComponent}, {@code Converter}, {@code GenericConverter}, and
Copy link
Member

Choose a reason for hiding this comment

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

I initially wrote that and I removed it as I felt it was a bit of a noise. So yeah if we scan a "converter" that includes the GenericConverter companion interface. Perhaps there is a better way to phrase that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@snicoll The reason why I added {@code GenericConverter} was that {@code Converter} is decorated with @code and as a code it didn't look to include GenericConverter. If it was "converter", it would be okay. I'm not sure how it can be improved ATM but maybe {@code Converter}/{@code GenericConverter}?

Copy link
Member

@snicoll snicoll Nov 26, 2017

Choose a reason for hiding this comment

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

Yeah I like that. Can you please update your proposal?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@snicoll Sure, will do.

@@ -32,13 +32,13 @@

@GetMapping("/two")
@ResponseBody
public String one(ExampleArgument argument) {
public String two(ExampleArgument argument) {
Copy link
Member

Choose a reason for hiding this comment

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

😓

@snicoll snicoll added the status: waiting-for-feedback We need additional information before we can continue label Nov 24, 2017
@izeye
Copy link
Contributor Author

izeye commented Nov 26, 2017

@snicoll Thanks for reviewing this. I changed as discussed.

@snicoll snicoll added priority: normal type: task A general task and removed status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged labels Nov 27, 2017
@snicoll snicoll self-assigned this Nov 27, 2017
@snicoll snicoll added this to the 2.0.0.M7 milestone Nov 27, 2017
snicoll pushed a commit that referenced this pull request Nov 27, 2017
@snicoll snicoll closed this in 1620ac4 Nov 27, 2017
snicoll added a commit that referenced this pull request Nov 27, 2017
* pr/11143:
  Polish contribution
  Polish
@izeye izeye deleted the polish-20171125 branch November 27, 2017 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants