mapstruct / mapstruct/mapstruct-idea

Remove warnings for fluent removers.

オープン
#211 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Java
スター
168
フォーク
41
PR マージ指標
30日以内にマージされた PR はありません

説明

If issue#3072 in mapstruct is merged the idea-plugin will give false errors for fluent remover's.

Given the Source class:

public class Source {
    private List<String> strings = new ArrayList<>();
    public List<String> getStrings() {
        return strings;
    }
    public void setStrings(List<String> strings) {
        this.strings = strings;
    }
}

and the Target class:

public class Target {
    private List<String> strings = new ArrayList<>();
    public List<String> getStrings() {
        return strings;
    }
    public void setStrings(List<String> strings) {
        this.strings = strings;
    }
    public Target strings(List<String> strings) {
        this.strings.addAll( strings );
        return this;
    }
    public Target addString(String string) {
        strings.add( string );
        return this;
    }
    public Target removeString(String string) {
        strings.remove( string );
        return this;
    }
}

and finally this Mapper:

@Mapper
public interface MapperWithRemoverInTarget {
    Target map(Source source);
}

the plugin should no longer produce any warnings nor errors.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、issue #3072 の fluent-remover 変更を適用した IntelliJ IDEA plugin の Source、Target、MapperWithRemoverInTarget の例を再現します。Target メソッドを検査する diagnostics を追跡します。完了条件は、例が警告もエラーも生成しないことです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
tooling
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。