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
pr/IntroduceReferencePointAndRefactoringSarosSession #211
Conversation
core.IReferencePoint
SharedReferencePointMapper
…oject/saros into IntroduceReferencePoint
addReferencePoint()
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.
* the resources to add | ||
*/ | ||
/* | ||
* TODO needs proper sync. in the SarosSession class |
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.
Code Smell: Complete the task associated to this TODO comment. (squid:S1135)
* the resources to remove | ||
*/ | ||
/* | ||
* TODO needs proper sync. in the SarosSession class |
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.
Code Smell: Complete the task associated to this TODO comment. (squid:S1135)
+ " [completely shared:" + !isPartially + "]"); | ||
} | ||
|
||
private synchronized void CheckIfReferencePointIsAbleToBeShared(String id, |
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.
Code Smell: Rename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'. (squid:S00100)
IReferencePoint referencePoint) { | ||
|
||
if (partiallySharedReferencePoints.contains(referencePoint)) | ||
throw new IllegalStateException("referencePoint " + referencePoint |
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.
Code Smell: Define a constant instead of duplicating this literal "referencePoint " 3 times. (squid:S1192)
} | ||
} | ||
|
||
private synchronized void addReferencePointPartially(String id, |
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.
Code Smell: Remove this unused method parameter "id". (squid:S1172)
* <p> | ||
* TODO Why is the project parameter needed here? This forces callers to | ||
* store the mapping themselves (or retrieve it just before calling this | ||
* TODO Why is the referencePoint parameter needed here? This forces callers |
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.
Code Smell: Complete the task associated to this TODO comment. (squid:S1135)
return false; | ||
|
||
if (isCompletelyShared(referencePoint)) | ||
// TODO how should partial sharing handle this case ? |
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.
Code Smell: Complete the task associated to this TODO comment. (squid:S1135)
* Negotiation, since its the only consumer of queuing | ||
* functionality. This will enable a specific Queuing mechanism per | ||
* TransferType (see github issue #137). | ||
* TODO Queuing responsibility should be moved to Project Negotiation, |
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.
Code Smell: Complete the task associated to this TODO comment. (squid:S1135)
new HashSet<IResource>()); | ||
} | ||
|
||
private synchronized void addReferencePointCompletelly(String id, |
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.
Code Smell: Remove this unused method parameter "id". (squid:S1172)
* the resources to add | ||
*/ | ||
/* | ||
* TODO needs proper sync. in the SarosSession class |
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.
Code Smell: Complete the task associated to this TODO comment. (squid:S1135)
It seems like you started to split this pull request (see #227). Can this PR be closed? |
No description provided.