Issues/jpx 72 parse location#139
Merged
jenetics merged 7 commits intojenetics:r2.2.0from Jan 22, 2021
Merged
Conversation
Owner
|
Many thanks, @bunkenburg. I will have a look at it. I'm not sure if I will have time before X-Mas, but I try to review it this year. |
Owner
|
Sorry for the delay, @bunkenburg, but I needed the timeout. I will soon start the review :-) |
Owner
|
@bunkenburg thank you for the implementation. I just had a look at the code, finally ;-) It looks good. I only have one question: Is the If the parsing method is thread safe I would merge the PR into the r.2.2.0 branch and leaf the refactoring to an immutable |
Contributor
Author
|
Yes, LocationFormatter.parse is threadsafe. The only state in
LocationFormatter is _formats which is not changed after creation of an
instance of LocationFormatter.
…On Mon, 18 Jan 2021 at 18:17, Franz Wilhelmstötter ***@***.***> wrote:
@bunkenburg <https://github.com/bunkenburg> thank you for the
implementation. I just had a look at the code, finally ;-) It looks good. I
only have one question: Is the LocationFormatter.parse method thread
safe? I'm not sure, because the used Field class is mutable (
Field.setPrefixSign). I would prefer to have this class immutable, if
possible.
If the parsing method is thread safe I would merge the PR into the r.2.2.0
branch and leaf the refactoring to an immutable Field class for a later
improvement.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#139 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGE7TNBM4QPKFZW576JI33S2RUKVANCNFSM4UYV5J4Q>
.
--
Dr Alexander Bunkenburg
www.inspiracio.cat
N 41°22.820' E2°08.150' 51m
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #72
I've tightened the formatting and fixed one or two small bugs in it.
I added LocationFormatter.parse method and some tests for it.