Skip to content

Commit 30b6085

Browse files
authored
Merge pull request #7 from jamesross03/develop
1.0.2-SNAPSHOT: Updates and type-safety
2 parents 9655b69 + b8e8c7b commit 30b6085

File tree

7 files changed

+21
-14
lines changed

7 files changed

+21
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This project provides some Java utility classes for manipulating population reco
1010
<dependency>
1111
<groupId>uk.ac.standrews.cs</groupId>
1212
<artifactId>population-records</artifactId>
13-
<version>1.0-SNAPSHOT</version>
13+
<version>1.0.2-SNAPSHOT</version>
1414
</dependency>
1515
...
1616
<repository>

pom.xml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</parent>
2828

2929
<artifactId>population-records</artifactId>
30-
<version>1.0.1-SNAPSHOT</version>
30+
<version>1.0.2-SNAPSHOT</version>
3131
<packaging>jar</packaging>
3232
<name>population-records</name>
3333

@@ -39,13 +39,20 @@
3939
<dependency>
4040
<groupId>uk.ac.standrews.cs</groupId>
4141
<artifactId>neo-storr</artifactId>
42-
<version>1.0-SNAPSHOT</version>
42+
<version>1.0.1-SNAPSHOT</version>
4343
</dependency>
4444

4545
<dependency>
4646
<groupId>uk.ac.standrews.cs</groupId>
4747
<artifactId>ciesvium</artifactId>
48-
<version>1.1.0-SNAPSHOT</version>
48+
<version>1.1.1-SNAPSHOT</version>
49+
</dependency>
50+
51+
<dependency>
52+
<groupId>org.junit.jupiter</groupId>
53+
<artifactId>junit-jupiter</artifactId>
54+
<version>5.10.2</version> <!-- Use the latest version -->
55+
<scope>test</scope>
4956
</dependency>
5057

5158
</dependencies>

src/main/java/uk/ac/standrews/cs/population_records/RecordRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private <T extends LXP> Iterable<T> getRecords(IBucket<T> bucket) {
131131

132132
return () -> new Iterator<>() {
133133

134-
final List<Long> object_ids = bucket.getObjectIds();
134+
final List<String> object_ids = bucket.getObjectIds();
135135
final int bucket_size = object_ids.size();
136136
int next_index = 0;
137137

src/main/java/uk/ac/standrews/cs/population_records/record_types/Birth.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import java.util.List;
3030
import java.util.Map;
3131

32-
@SuppressWarnings({"unused", "WeakerAccess"})
32+
@SuppressWarnings("WeakerAccess")
3333
public class Birth extends StaticLXP {
3434

3535
public static final String ROLE_BABY = "ROLE_BABY";
@@ -53,7 +53,7 @@ public Birth() {
5353
super();
5454
}
5555

56-
public Birth(long persistent_object_id, Map properties, IBucket bucket) throws PersistentObjectException {
56+
public Birth(String persistent_object_id, Map properties, IBucket bucket) throws PersistentObjectException {
5757

5858
super(persistent_object_id, properties, bucket);
5959
}

src/main/java/uk/ac/standrews/cs/population_records/record_types/Death.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import java.util.List;
3030
import java.util.Map;
3131

32-
@SuppressWarnings({"unused", "WeakerAccess"})
32+
@SuppressWarnings("WeakerAccess")
3333
public class Death extends StaticLXP {
3434

3535
public static final String ROLE_DECEASED = "ROLE_DECEASED";
@@ -57,7 +57,7 @@ public Death() {
5757
super();
5858
}
5959

60-
public Death(long persistent_Object_id, Map properties, IBucket bucket) throws PersistentObjectException {
60+
public Death(String persistent_Object_id, Map properties, IBucket bucket) throws PersistentObjectException {
6161

6262
super(persistent_Object_id, properties, bucket);
6363
}

src/main/java/uk/ac/standrews/cs/population_records/record_types/Marriage.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import java.util.List;
3030
import java.util.Map;
3131

32-
@SuppressWarnings({"WeakerAccess", "unused"})
32+
@SuppressWarnings("WeakerAccess")
3333
public class Marriage extends StaticLXP {
3434

3535
public static final String ROLE_BRIDE = "ROLE_BRIDE";
@@ -60,8 +60,8 @@ public Marriage() {
6060
super();
6161
}
6262

63-
public Marriage(long persistent_object_id, Map properties, IBucket bucket) throws PersistentObjectException {
64-
63+
public Marriage(String persistent_object_id, Map properties, IBucket bucket) throws PersistentObjectException {
64+
6565
super(persistent_object_id, properties, bucket);
6666
}
6767

src/test/java/uk/ac/standrews/cs/population_records/NormalisationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
*/
1717
package uk.ac.standrews.cs.population_records;
1818

19-
import org.junit.Test;
19+
import org.junit.jupiter.api.Test;
2020

21-
import static junit.framework.TestCase.assertEquals;
21+
import static org.junit.jupiter.api.Assertions.assertEquals;
2222

2323
public class NormalisationTest {
2424

0 commit comments

Comments
 (0)