Find usages and renaming for constructor fields
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia con il ConstructorParametersReferencesSearcher personalizzato e i due test indicati: MapstructMethodUsagesSearcherTest.testRenameConstructorTargetReferenceMethod e RenameHandlerTest.testRenameConstructorTargetParameter. Riproduci entrambi gli scenari di rinomina dei parametri del costruttore e analizzane i fallimenti. L'attività è completata quando entrambi i test superano, inclusa la rinomina di un elemento di annotazione quando la classe si trova nello stesso file, senza errori.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I've been trying to make this work. However, there are some problems with the custom ConstructorParametersReferencesSearcher that I've implemented. Find usages works properly. However, that causes some other problems:
- When I rename the constructor parameter in the constructor method then my element in the annotation is not renamed. This is tested by
MapstructMethodUsagesSearcherTest.testRenameConstructorTargetReferenceMethod - When I rename the element in the annotation and the class is in the same file as my annotation there is an error happening. This is tested in
RenameHandlerTest.testRenameConstructorTargetParameter. When I run the plugin in an IDE and the class is not in the same file as my annotation then the renaming is correct.
- Lingua principale
- Java
- Stelle
- 168
- Fork
- 41
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di mapstruct/mapstruct-idea
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
mapstruct/mapstruct-idea#274 · 2 commenti ·
-
feature hack.commit.push
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
mapstruct/mapstruct-idea#267 ·
-
feature hack.commit.push
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
mapstruct/mapstruct-idea#266 ·
-
feature hack.commit.push
Difficoltà 3/5 1-2 giorni Idoneità per principianti 75/100
mapstruct/mapstruct-idea#265 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
mapstruct/mapstruct-idea#257 · 1 commento ·
Tutte le issue di mapstruct/mapstruct-idea
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
elastic/gradle-plugins#157 ·
-
enhancement Tools
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
apache/rocketmq-dashboard#5008 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
DETECT_PARAMETER_NAMES=false silently disables @ConstructorProperties-based Creator detection too Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
FasterXML/jackson-databind#6229 ·