Skip to content

Small issues with Spring Framework Code Style Guide [SPR-14352] #18924

@spring-projects-issues

Description

@spring-projects-issues

Arend v. Reinersdorff opened SPR-14352 and commented

1. "Source files must be encoded using -1"

Was ISO-8859-1 before.

2. "see <nothing> for a suggestion to move to UTF-8"

Was a link to #16193 before.

3. Section on Braces not clear

  • "Line break after the closing brace [...] with the exception of the else, catch and finally statements [...]"
  • Example below shows line breaks between closing brace and else:
if (condition()) {
    something();
}
else {
    // ...
}

Reads like a contradiction between the description and the example to me. But maybe I misread the sentence, I find it hard to understand. Maybe it could be clarified?

Suggestion (assuming the example is correct):

  • Line break after the closing brace if that brace terminates a statement or the body of a method, constructor, or named class
  • Line break before else, catch and finally statements

4. Deletion of content

On Feb 20, 2016 a lot of content was deleted from the style guide, eg Constant names, Ternary operator, @Override. I'm not sure if this was on purpose.


Reference URL: https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-Code-Style

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions