Skip to content

Commit 7fc77a3

Browse files
committed
Keep nullable annotation close to return type
1 parent cd7adc1 commit 7fc77a3

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/main/java/ch/jalu/typeresolver/numbers/ValueRangeImpl.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,26 +50,22 @@ public ValueRangeImpl(@Nullable T min, @Nullable T max,
5050
}
5151

5252
@Override
53-
@Nullable
54-
public BigDecimal getMinValue() {
53+
public @Nullable BigDecimal getMinValue() {
5554
return min;
5655
}
5756

5857
@Override
59-
@Nullable
60-
public BigDecimal getMaxValue() {
58+
public @Nullable BigDecimal getMaxValue() {
6159
return max;
6260
}
6361

6462
@Override
65-
@Nullable
66-
public T getMinInOwnType() {
63+
public @Nullable T getMinInOwnType() {
6764
return minOwnType;
6865
}
6966

7067
@Override
71-
@Nullable
72-
public T getMaxInOwnType() {
68+
public @Nullable T getMaxInOwnType() {
7369
return maxOwnType;
7470
}
7571

0 commit comments

Comments
 (0)