Skip to content

Commit

Permalink
experiment with loading
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Jul 25, 2024
1 parent 9837ea2 commit 27b3c37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion repository/OpenPonk-Core/OPExamplePersistenceTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ OPExamplePersistenceTest >> createExampleModel [
OPExamplePersistenceTest >> setUp [

super setUp.
file := FileSystem workingDirectory / 'example-persistence-test.opp'.
file := FileSystem memory root / 'example-persistence-test.opp'.
file ensureDelete
]

Expand Down
4 changes: 2 additions & 2 deletions repository/OpenPonk-Core/OPStonDiagramSerializer.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ OPStonDiagramSerializer >> materializeDiagramOf: aModel from: aStream [
elementsById := Dictionary new: innerElements size + 1.
elementsById at: aModel uuid put: aModel.
innerElements do: [ :each |
elementsById
"elementsById
at: each uuid
ifPresent: [ :existing |
self error:
'There are two elements with same ID ' , each uuid asString
, ': ' , existing asString , ' and: ' , each asString ]
ifAbsentPut: each ].
ifAbsentPut: each" ].
diagram resolveAllModelElements: elementsById.
^ diagram
]
Expand Down

0 comments on commit 27b3c37

Please sign in to comment.