File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
src/test/java/io/vavr/collection Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -589,7 +589,7 @@ public void shouldReturnTailOfNonEmptyHavingReversedOrder() {
589589
590590 // -- classes
591591
592- private static class Mapper <T > implements Serializable {
592+ private static final class Mapper <T > implements Serializable {
593593
594594 private static final long serialVersionUID = 1L ;
595595
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ public int compareTo(WeakInteger other) {
190190 }
191191 }
192192
193- private class Comparator <K , V > {
193+ private final class Comparator <K , V > {
194194 private final java .util .Map <K , V > classic = new java .util .HashMap <>();
195195 private Map <K , V > hamt = HashMap .empty ();
196196
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ default int letterCount(Seq<Integer> range) {
120120 /**
121121 * Solution using Vavr Pattern Matching.
122122 */
123- private static class SolutionA implements SolutionProblem17 {
123+ private static final class SolutionA implements SolutionProblem17 {
124124 @ Override
125125 public int letterCount (int num ) {
126126 return Match (num ).of ( /*@formatter:off*/
@@ -142,7 +142,7 @@ private static int length(int number) {
142142 /**
143143 * A more general solution using functionality of the Vavr Collections.
144144 */
145- private static class SolutionB implements SolutionProblem17 {
145+ private static final class SolutionB implements SolutionProblem17 {
146146 @ Override
147147 public int letterCount (int number ) {
148148 return asText (number ).length ();
You can’t perform that action at this time.
0 commit comments