Skip to content

Commit 68f9e1d

Browse files
Sebastian Hoßsebhoss
authored andcommitted
various cleanups
1 parent cc1d4a4 commit 68f9e1d

File tree

118 files changed

+511
-405
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+511
-405
lines changed

.idea/inspectionProfiles/storage-units.java.xml

Lines changed: 117 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

maven-version-rules.xml

Lines changed: 0 additions & 15 deletions
This file was deleted.

pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<groupId>wtf.metio.maven.parents</groupId>
1616
<artifactId>maven-parents-java-prototype</artifactId>
17-
<version>2022.11.4</version>
17+
<version>2022.11.25</version>
1818
</parent>
1919

2020
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
@@ -85,7 +85,6 @@
8585
<plugin>
8686
<groupId>org.codehaus.mojo</groupId>
8787
<artifactId>properties-maven-plugin</artifactId>
88-
<version>1.1.0</version>
8988
<executions>
9089
<execution>
9190
<phase>initialize</phase>

storage-units-dozer/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,10 @@
3838
<dependency>
3939
<groupId>org.jspecify</groupId>
4040
<artifactId>jspecify</artifactId>
41-
<version>0.3.0-alpha-1</version>
4241
</dependency>
4342
<dependency>
4443
<groupId>com.github.dozermapper</groupId>
4544
<artifactId>dozer-core</artifactId>
46-
<version>6.5.2</version>
4745
</dependency>
4846
</dependencies>
4947
</project>

storage-units-dozer/src/main/java/module-info.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
* SPDX-FileCopyrightText: The Storage-Units Authors
33
* SPDX-License-Identifier: 0BSD
44
*/
5+
/**
6+
* Module for Dozer support.
7+
*/
58
@org.jspecify.nullness.NullMarked
69
module wtf.metio.storageunits.dozer {
710

storage-units-dozer/src/main/java/wtf/metio/storageunits/dozer/BigIntegerBinaryStorageUnitConverter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ public BigIntegerBinaryStorageUnitConverter() {
2020
}
2121

2222
@Override
23-
public StorageUnit<?> convertTo(final BigInteger value, final StorageUnit unit) {
24-
return StorageUnits.binaryValueOf(value);
23+
public StorageUnit<?> convertTo(final BigInteger source, final StorageUnit destination) {
24+
return StorageUnits.binaryValueOf(source);
2525
}
2626

2727
@Override
28-
public BigInteger convertFrom(final StorageUnit unit, final BigInteger value) {
29-
return unit.inByte();
28+
public BigInteger convertFrom(final StorageUnit source, final BigInteger destination) {
29+
return source.inByte();
3030
}
3131

3232
}

storage-units-dozer/src/main/java/wtf/metio/storageunits/dozer/BigIntegerDecimalStorageUnitConverter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ public BigIntegerDecimalStorageUnitConverter() {
2020
}
2121

2222
@Override
23-
public StorageUnit<?> convertTo(final BigInteger value, final StorageUnit unit) {
24-
return StorageUnits.decimalValueOf(value);
23+
public StorageUnit<?> convertTo(final BigInteger source, final StorageUnit destination) {
24+
return StorageUnits.decimalValueOf(source);
2525
}
2626

2727
@Override
28-
public BigInteger convertFrom(final StorageUnit unit, final BigInteger value) {
29-
return unit.inByte();
28+
public BigInteger convertFrom(final StorageUnit source, final BigInteger destination) {
29+
return source.inByte();
3030
}
3131

3232
}

storage-units-dozer/src/main/java/wtf/metio/storageunits/dozer/LongBinaryStorageUnitConverter.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
import wtf.metio.storageunits.model.StorageUnit;
99
import wtf.metio.storageunits.model.StorageUnits;
1010

11-
import java.math.BigInteger;
12-
1311
/**
1412
* Converter for {@link Long} values to binary storage units.
1513
*/
@@ -20,13 +18,13 @@ public LongBinaryStorageUnitConverter() {
2018
}
2119

2220
@Override
23-
public StorageUnit<?> convertTo(final Long value, final StorageUnit unit) {
24-
return StorageUnits.binaryValueOf(value);
21+
public StorageUnit<?> convertTo(final Long source, final StorageUnit destination) {
22+
return StorageUnits.binaryValueOf(source);
2523
}
2624

2725
@Override
28-
public Long convertFrom(final StorageUnit unit, final Long value) {
29-
return unit.inByte().longValue();
26+
public Long convertFrom(final StorageUnit source, final Long destination) {
27+
return source.inByte().longValue();
3028
}
3129

3230
}

0 commit comments

Comments
 (0)