jbertram commented on pull request #3618: URL: https://github.com/apache/activemq-artemis/pull/3618#issuecomment-858892553
> I actually prefer class definitions having the newline so I just went with the default. By "class" do you mean "constructor"? The checkstyle `CLASS_DEF` and `CTOR_DEF` are different things, and I was talking about the latter. > ...I just made it consistent with all the other default and empty methods that would have needed updated if not for config tweak. There doesn't appear to be a consistent style for right curly brackets for `default` method definitions. A quick search through the code-base with a regular expression indicates that the newline version is far more prevalent than the single-line version. Only a few files use the single-line version with `org.apache.activemq.artemis.protocol.amqp.proton.handler.EventHandler` being the main culprit. I don't really care *what* the style is. I just think it should be consistent across all method definitions, whether those be constructors, `default` methods, or normal methods. Given that and your preference for newlines for constructors (assuming that's what you meant) then I'd say you should just revert your change to `checkstyle.xml` and update the classes that violate the style as it is enforced with the new version. I believe that was what the original style intended. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
