apache / apache/parquet-java

Investigate automatic not null checks via annotations in place of checkNotNull calls

Aperta
#1,446 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Component: Java Component: Parquet Priority: Minor Type: enhancement
Lingua principale
Java
Stelle
3.1k
Fork
1.6k
Merge medio
3g 12h
PR unite (30g)
33

Descrizione

We've discussed that it would be neat if we could replace a lot of the checkNotNull() calls in parquet-mr with an annotation like
```Java
@NotNull
```

or even make not null the default and annotate things that can be null with
```Java
@Nullable
```

and have this enforced by the compiler / annotation preprocessor.

**Reporter**: [Alex Levenson](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=alexlevenson) / @isnotinvain

**Note**: *This issue was originally created as [PARQUET-29](https://issues.apache.org/jira/browse/PARQUET-29). Please see the [migration documentation](https://issues.apache.org/jira/browse/PARQUET-2502) for further details.*

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start by surveying checkNotNull() calls across parquet-mr and the project's current Java build configuration. Compare enforcing @NotNull by default versus annotating @Nullable values, including whether a compiler or annotation preprocessor is supported. Done means documenting a decided approach and its scope, or establishing why the change is not feasible.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
tooling
Tipo di issue
Refactoring
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.