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() {
589
589
590
590
// -- classes
591
591
592
- private static class Mapper <T > implements Serializable {
592
+ private static final class Mapper <T > implements Serializable {
593
593
594
594
private static final long serialVersionUID = 1L ;
595
595
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ public int compareTo(WeakInteger other) {
190
190
}
191
191
}
192
192
193
- private class Comparator <K , V > {
193
+ private final class Comparator <K , V > {
194
194
private final java .util .Map <K , V > classic = new java .util .HashMap <>();
195
195
private Map <K , V > hamt = HashMap .empty ();
196
196
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ default int letterCount(Seq<Integer> range) {
120
120
/**
121
121
* Solution using Vavr Pattern Matching.
122
122
*/
123
- private static class SolutionA implements SolutionProblem17 {
123
+ private static final class SolutionA implements SolutionProblem17 {
124
124
@ Override
125
125
public int letterCount (int num ) {
126
126
return Match (num ).of ( /*@formatter:off*/
@@ -142,7 +142,7 @@ private static int length(int number) {
142
142
/**
143
143
* A more general solution using functionality of the Vavr Collections.
144
144
*/
145
- private static class SolutionB implements SolutionProblem17 {
145
+ private static final class SolutionB implements SolutionProblem17 {
146
146
@ Override
147
147
public int letterCount (int number ) {
148
148
return asText (number ).length ();
You can’t perform that action at this time.
0 commit comments