Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

RFE: Add a convenience method for the full set of types for a type

Aperta
#50 9 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java
Ambito
devtools

Direzione di ricerca

Inizia leggendo le API ResolvedType.getImplementedInterfaces() e TypeResolver.getParentClass() menzionate nella issue. Determina come dovrebbe essere raccolta la gerarchia completa per String.class, incluse le interfacce generiche, e considera il Set restituito atteso. Il lavoro è terminato quando l’API restituisce Object, Comparable, CharSequence, String e Serializable per quell’esempio, con test che coprano questo comportamento.

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

Descrizione

good first issue hacktoberfest

Thanks for a great project!

It would be helpful if there were a method on ResolvedType that could provide a List or Set of all implemented and extended Types.

I know that ResolvedType has getImplementedInterfaces(). And I know that TypeResolver has getParentClass(). It would be nice if there were a method like public Set<ResolvedType> getAllTypes() or something of that nature implemented in terms of the other two.

I would expect, for example, that if it were passed String.class the returned set would include types representing:

  • Object
  • Comparable<String>
  • CharSequence
  • String
  • Serializable
Lingua principale
Java
Stelle
266
Fork
47
Merge medio
1h 42m
PR unite (30g)
1

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di FasterXML/java-classmate

Tutte le issue di FasterXML/java-classmate

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.