Skip to content

Commit 95d5033

Browse files
simbo1905claude
andcommitted
Add try-with-resources guideline to AGENTS.md
- Added bullet point under 'Leverage Java 21+ features' section - Specifies that try-with-resources must be used for all AutoCloseable resources - Includes examples like HttpClient and streams - Ensures proper resource management following Java best practices 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 74e5c9e commit 95d5033

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ IMPORTANT: Never disable tests written for logic that we are yet to write we do
455455
* Pattern matching for structural decomposition
456456
* Sealed classes for exhaustive switches
457457
* Virtual threads for concurrent processing
458+
* **Use try-with-resources for all AutoCloseable resources** (HttpClient, streams, etc.)
458459

459460
## Package Structure
460461

0 commit comments

Comments
 (0)