-
-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace Vector and Stack classes in tla2sany.utilities package with their java.util equivalents #328
base: master
Are you sure you want to change the base?
Conversation
927afc2
to
3b88742
Compare
…a.util.Vector and java.util.Stack, respectively.
3b88742
to
b2411c5
Compare
@@ -987,4 +990,4 @@ public void setGlobalContextErrors(Errors globalContextErrors) | |||
this.globalContextErrors = globalContextErrors; | |||
} | |||
|
|||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this line is just saying that there was no line break after this closing brace previously and my editor added it automatically. I'm trying to keep a clean diff on this PR, but I'm inclined not to revert this change. Let me know if you disagree.
We are currently putting the finish touches on the 1.6.0 release. I will look into this afterwards. |
Sure. I figured I could pick off some easy issues as a way to learn more about the implementation of the TLAToolbox. In general, I figure using the standard library is (almost) always superior. In detail, my rationale for standardizing on the java.util implementations:
|
Any updates on the readiness of this PR? |
Will look into it once https://github.com/tlaplus/tlaplus/milestone/6 is out of the door. |
Related #86 |
Sure, I'll follow along. Would you like me to rebase this branch once that milestone is finished? |
@tautomaton Have you considered that java.util.Vector is synchronized whereas tla2sany.utilities.Vector is not? |
Yeah, that's called out in the fourth bullet of my comment on June 16. My thinking is
|
Any remaining concerns? |
Friendly ping. I've got work based on this which I can create PRs for. If the synchronization is a concern, I can replace java.util.Vector (which is rather old) with java.util.ArrayList. Just let me know. |
@tautomaton What is it you are working on? As per the guide it is best to first discuss contributions. |
Sure thing, just other cleanups from the list of FRs. Nothing big, if that's a concern. |
Eventually, once I get some familiarity with the code and the process of submitting to this project, I'd like to tackle "Improved runtime API for TLC (difficulty: moderate) (skills: Java)" listed on the contributions page you link. |
But please do let me know if this particular PR has any changes that are needed. |
@tautomaton , beware of the difference in semantics of the BTW, such difference might also be a source of some subtle bugs in places where |
bd71c07
to
0a543cc
Compare
Fixed #86