File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -241,6 +241,21 @@ public class ExampleComponentHandler implements ComponentHandler {
241241 }
242242 ```
243243
244+ ### Blank Line After Variable Modification (Java)
245+ - Insert exactly one empty line between a variable modification and a subsequent statement that uses that variable
246+ - This improves readability by visually separating the setup from the usage
247+ - Example:
248+ ``` java
249+ // Bad
250+ document. setStatus(KnowledgeBaseDocument . STATUS_PROCESSING );
251+ knowledgeBaseDocumentService. saveKnowledgeBaseDocument(document);
252+
253+ // Good
254+ document. setStatus(KnowledgeBaseDocument . STATUS_PROCESSING );
255+
256+ knowledgeBaseDocumentService. saveKnowledgeBaseDocument(document);
257+ ```
258+
244259### Method Chaining
245260- Do not chain method calls except where this is natural and idiomatic
246261- Allowed exceptions (non-exhaustive):
You can’t perform that action at this time.
0 commit comments