` for paragraph breaks (with newline before tag)
- Use `
* This method performs the following steps:
*
* Thread safety: This method is thread-safe and can be called concurrently.
*
* @param input the user input to process (must not be null)
* @param rules the validation rules to apply
* @return validation result containing either data or errors
* @throws IllegalArgumentException if input is null
*/
public Result processInput(String input, Set
* This is not the username for authentication (see {@link #getLoginName()}).
* Returns "Guest" if user is not authenticated.
*
* @return display name for current user, never null
*/
public String getUserName() { ... }
```
**Document design decisions:**
```java
/**
* Cache implementation using weak references to allow garbage collection.
*
* This cache prioritizes memory efficiency over hit rate. Entries may be
* evicted at any time if memory pressure increases. For guaranteed retention,
* use {@link StrongReferenceCache} instead.
*
* Thread safety: This implementation is thread-safe using concurrent data
* structures. However, cache size is approximate due to asynchronous cleanup.
*/
public class WeakReferenceCache` and `{@code}` for inline code
- Use `` for code blocks
- Use `{@link}` for references to other types/methods
**Example:**
```java
/**
* Processes user input and validates against business rules.
*
*
*
* This test ensures we maintain email uniqueness constraint per requirements * in USER-123. The test uses a pre-populated test user to simulate existing * registration. *
* Known limitation: Does not test case-sensitivity of email comparison * (covered separately in {@link #emailComparisonIsCaseInsensitive()}). */ @Test @DisplayName("should reject duplicate email addresses") void rejectsDuplicateEmails() { // Test implementation } ```