You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
some method invocations have a space before the (, others not
some arguments are final, others not
why are fields indented, but methods not
is it desired to make fields private if possible (otherwise reading the code indicates to me that they might be set to null somewhere)?
is it desired to make methods private if possible (otherwise reading the code indicates to me that they might be invoked from outside)?
is it desired to use collections? If yes, rather the interface or the implementation (the above Path is using a field of type HashMap - I'd recommend Map instead)?
PS: Where I can find the standard layout documentation?
The text was updated successfully, but these errors were encountered:
For example, in Path:
For example, GC:
some method invocations have a space before the
(
, others notsome arguments are
final
, others notwhy are fields indented, but methods not
is it desired to make fields
private
if possible (otherwise reading the code indicates to me that they might be set to null somewhere)?is it desired to make methods
private
if possible (otherwise reading the code indicates to me that they might be invoked from outside)?is it desired to use collections? If yes, rather the interface or the implementation (the above
Path
is using a field of typeHashMap
- I'd recommendMap
instead)?PS: Where I can find the standard layout documentation?
The text was updated successfully, but these errors were encountered: