Skip to content

Commit 7e6d73a

Browse files
committed
remove confusing transient keyword
1 parent e599fff commit 7e6d73a

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

core/src/main/java/com/graphhopper/storage/AbstractDataAccess.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ public abstract class AbstractDataAccess implements DataAccess {
4040
protected int header[] = new int[(HEADER_OFFSET - 20) / 4];
4141
protected String name;
4242
protected int segmentSizeInBytes = SEGMENT_SIZE_DEFAULT;
43-
protected transient int segmentSizePower;
44-
protected transient int indexDivisor;
45-
protected transient boolean closed = false;
43+
protected int segmentSizePower;
44+
protected int indexDivisor;
45+
protected boolean closed = false;
4646

4747
public AbstractDataAccess(String name, String location, ByteOrder order) {
4848
byteOrder = order;

core/src/main/java/com/graphhopper/storage/RAMDataAccess.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ public DataAccess copyTo(DataAccess da) {
7777
public RAMDataAccess create(long bytes) {
7878
if (segments.length > 0)
7979
throw new IllegalThreadStateException("already created");
80-
81-
// initialize transient values
80+
8281
setSegmentSize(segmentSizeInBytes);
8382
ensureCapacity(Math.max(10 * 4, bytes));
8483
return this;

core/src/main/java/com/graphhopper/storage/RAMIntDataAccess.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class RAMIntDataAccess extends AbstractDataAccess {
3434
private int[][] segments = new int[0][];
3535
private boolean closed = false;
3636
private boolean store;
37-
private transient int segmentSizeIntsPower;
37+
private int segmentSizeIntsPower;
3838

3939
RAMIntDataAccess(String name, String location, boolean store, ByteOrder order) {
4040
super(name, location, order);
@@ -78,7 +78,6 @@ public RAMIntDataAccess create(long bytes) {
7878
if (segments.length > 0)
7979
throw new IllegalThreadStateException("already created");
8080

81-
// initialize transient values
8281
setSegmentSize(segmentSizeInBytes);
8382
ensureCapacity(Math.max(10 * 4, bytes));
8483
return this;

0 commit comments

Comments
 (0)