Comments (3)
About the second case:
- There is specific comment in the checkstyle source that this exact case should be reported:
https://github.com/checkstyle/checkstyle/blob/master/src/main/java/com/puppycrawl/tools/checkstyle/checks/whitespace/GenericWhitespaceCheck.java#L89 - I use this check to catch files that were not autoformatted. And autoformatter preferences for IDEA at my work (slightly modified defaults) remove this space if it is added.
So should we change the second case at all?
from checkstyle.
Hi @isopov , thanks for investigation, after attentive look at this case :
ListResult<String> result = new ListResult<String>(Collections.<String> emptyList());
I do not think it is good idea to have space at this place. With space it looks like type of some new form of method reference/call.
I am voting for ignoring that request (to have a space after ">") and fix the issue.
from checkstyle.
Done.
from checkstyle.
Related Issues (20)
- Enforce new naming convention "InputXpath{Checkname}Xxxx.java" in IT area HOT 8
- Indentation: Unexpected violation when class declaration is wrapped after public and before static HOT 15
- [JavadocType] add additional allowedTags feature HOT 1
- new Check: ConstructorsDeclarationGrouping to check the grouping of overloaded constructors HOT 5
- New Check: AnnotatedMethodNameCheck to check method names of annotated (test) methods HOT 9
- ParenPad incorretly flags unsupported token HOT 4
- Ending period detected in first sentence of Javadoc when it is not at the end of the sentence HOT 1
- First sentence of Javadoc is not checked past default period character when using custom period HOT 1
- New Check: Unnecessary Block Braces HOT 14
- Enhance Command Line documentation by organizing options in Tabular format HOT 9
- EmptyLineSeparator does not detect multiple blank lines HOT 6
- OverloadMethodDeclarationOrder check ignores anything besides methods HOT 2
- IT regression area Folder structure HOT 2
- How to exclude java-Files that contain @Generated-Annotation? HOT 4
- Improve documentation - how to add usage of `var` to check `IllegalType`? HOT 6
- Column number in `DetailNode` should start with 1 HOT 16
- LITERAL_DEFAULT token support in RightCurlyCheck
- False Negative of ClassFanOutCheck with "new" Keyword HOT 6
- MagicNumberCheck NPE when ignoring field declarations HOT 11
- Parse exception for RAW string template (Java 21+) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from checkstyle.