@@ -54,6 +54,15 @@ private CodemodChange(final int lineNumber, final FixedFinding finding) {
5454 this .fixedFindings = List .of (Objects .requireNonNull (finding ));
5555 }
5656
57+ private CodemodChange (
58+ final int lineNumber , final String description , final List <FixedFinding > findings ) {
59+ this .lineNumber = lineNumber ;
60+ this .dependenciesNeeded = List .of ();
61+ this .parameters = List .of ();
62+ this .description = description ;
63+ this .fixedFindings = Objects .requireNonNull (findings );
64+ }
65+
5766 private CodemodChange (final int lineNumber , final String description ) {
5867 this .lineNumber = lineNumber ;
5968 this .dependenciesNeeded = List .of ();
@@ -154,7 +163,16 @@ public static CodemodChange from(
154163 return new CodemodChange (line , dependencyGAVS , List .of (finding ));
155164 }
156165
157- /** A {@link } */
166+ public static CodemodChange from (
167+ final int line , final String description , final FixedFinding finding ) {
168+ return new CodemodChange (line , description , List .of (finding ));
169+ }
170+
171+ public static CodemodChange from (
172+ final int line , final String description , final List <FixedFinding > findings ) {
173+ return new CodemodChange (line , description , findings );
174+ }
175+
158176 public static CodemodChange from (
159177 final int line , final Parameter parameter , final String valueUsed ) {
160178 return new CodemodChange (line , parameter , valueUsed );
0 commit comments