Annotation (processing) improvements

Offen
#758 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@Citymonstret arbeitet bereits daran.

Seit 27.7.2024.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

enhancement

During the command method validation we should attempt to validate nullability, with some support for common nullability annotations.

If a parameter is required we should output a warning if it's marked as nullable. If it's optional without a default value, then we should probably error if it's marked as non-nullable.

We ought to validate whether primitive values are optional without defaults, as this will fail at runtime.

It'd also be good if we added some support for third-party annotations at runtime. Such as existing range annotations, and possibly even existing pattern annotations (for regex), etc.

We should properly mark our annotations as inherited and documented, and improve our support for meta-annotations and annotation composition.

None of this would break API and can be done after the 2.0 release.

Vorherrschende Sprache
Java
Sterne
546
Forks
61
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Incendo/cloud

Alle Issues in Incendo/cloud

Ähnliche Issues

Weitere Issues zu Java

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.