Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.

[ggj] feat: add SynchronizedStatement to AST - #183

Merged
miraleung merged 1 commit into
gp/g8from
gp/g9
Aug 14, 2020
Merged

[ggj] feat: add SynchronizedStatement to AST#183
miraleung merged 1 commit into
gp/g8from
gp/g9

Conversation

@miraleung

Copy link
Copy Markdown
Contributor

No description provided.

@xiaozhenliu-gg5 xiaozhenliu-gg5 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this, do we also need synchronized method?

public Builder setLock(VariableExpr variableExpr) {
// This will also prevent declared variables (i.e. setIsDecl(true)) due to their void types.
Preconditions.checkState(
TypeNode.isReferenceType(variableExpr.type()),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! it prevents null type also.

@miraleung

Copy link
Copy Markdown
Contributor Author

I haven't seen a synchronized method yet, so no.

@miraleung
miraleung merged commit 941053c into gp/g8 Aug 14, 2020
suztomo pushed a commit that referenced this pull request Mar 21, 2023
This should detect if the current version of shared-dependencies, if released as-is, would cause a sampling of downstream client libraries to fail dependency checks.

Fixes #177
suztomo pushed a commit that referenced this pull request Mar 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants