Skip to content

Commit

Permalink
Transformed Timestamp in MemoryObject to volatile
Browse files Browse the repository at this point in the history
  • Loading branch information
rgudwin committed Apr 15, 2024
1 parent 56cd8ff commit 594ab78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/java-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
java: [ '8', '11']
java: [ '8', '11', '17']
name: JDK ${{ matrix.Java }} build
steps:
- uses: actions/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/br/unicamp/cst/core/entities/MemoryObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class MemoryObject implements Memory, Serializable {
/**
* Date when the data was "created" in milliseconds
*/
private Long timestamp;
private volatile Long timestamp;

/**
* An evaluation of this memory object based on inner references
Expand All @@ -60,7 +60,7 @@ public class MemoryObject implements Memory, Serializable {
private volatile Object I;

/**
* Type of the memory object
* Name of the memory object
*/
private String name;

Expand Down

0 comments on commit 594ab78

Please sign in to comment.