CtrlK
BlogDocsLog inGet started
Tessl Logo

martinfrancois/java-optionals

Help AI coding agents use Java Optional well in new code and cleanups, without replacing one antipattern with another.

100

2.08x
Quality

100%

Does it follow best practices?

Impact

100%

2.08x

Average score across 4 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

Evaluation results

100%

55%

Add string support to workflow port lookup

Criteria
Without context
With context

Compiles and creates requested artifact

100%

100%

Implements Number and String behavior

100%

100%

Handles absent and invalid values

100%

100%

Preserves public contract

100%

100%

Uses Optional boundary without reopening

0%

100%

Avoids null or fake collection workarounds

100%

100%

Keeps parser readable

100%

100%

100%

80%

Write retry backoff code

Criteria
Without context
With context

Compiles and creates requested artifact

100%

100%

Implements fallback behavior exactly

100%

100%

Parses only positive whole seconds

100%

100%

Preserves lazy fallback timing

100%

100%

Uses Optional boundary for header and parse flow

0%

100%

Avoids Optional antipatterns

0%

100%

Keeps implementation readable

100%

100%

100%

9%

Clean up Optional value reads at checked boundaries

Criteria
Without context
With context

Compiles and creates requested artifact

100%

100%

Preserves warehouse selection behavior

100%

100%

Preserves workspace selection behavior

100%

100%

Preserves port and YAML behavior

100%

100%

Uses direct Optional boundaries for ordinary values

100%

100%

Handles checked boundaries without generic Optional helpers

66%

100%

Avoids replacement Optional antipatterns

100%

100%

Keeps cleanup focused

66%

100%

100%

Extend command sanitization

Criteria
Without context
With context

Compiles and creates requested artifact

100%

100%

Implements exact redaction behavior

100%

100%

Preserves output order and sequence state

100%

100%

Keeps option matching centralized

100%

100%

Consumes Optional result directly

100%

100%

Avoids fake or noisy rewrites

100%

100%

Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents