I use Visual Studio Code to edit code. I installed Google Java Format for VSCode plugin which automatically formats code. But I noticed that it makes small changes to existing code. There is a difference in word wrapping and JavaDoc formatting. For example it was like this:
/**
* reads JSONString and converts it to JSONObject for each row and adds it to ArrayList
*/
JSONValue jsonValue = (value.isEmpty() || value.equals("")) ? null : JSONParser.parseStrict(value);
And it is like this:
/** reads JSONString and converts it to JSONObject for each row and adds it to ArrayList */
JSONValue jsonValue =
(value.isEmpty() || value.equals("")) ? null : JSONParser.parseStrict(value);
Should I revert these changes manually? Or does anyone know a way to edit these rules in VSCode?
There is a smaller character limit per line by a few. There is also a different way of formatting JavaDoc for single-line comments, which pretty much matches Google's current formatting.
I'm not sure that a Javadoc would be the most appropriate comment style in this case anyway. Since you're commenting about a line it seems like it'd be more appropriate to use a regular // comment. You only really need Javadoc style comments to document public/protected classes, fields, and methods (see §7.3 of this document)
Most of us on the team use IntelliJ, for which there is a free community edition. It's more heavyweight than VSCode but it's Java support is much better.