-
Notifications
You must be signed in to change notification settings - Fork 329
Migrate AutoValue to Records #1415
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
Merged
Merged
Changes from 21 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
1b2483b
migrated AnalysisParams on record
rishikraj990 9c7e5d3
migrated CollectLikeMethodRecord on record
rishikraj990 ed33a43
migrated MethodAnnotationsRecord on record
rishikraj990 75a2d78
migrated FieldRef on record
rishikraj990 c43b083
migrated MethodClassAndName on record
rishikraj990 76cf410
remove unsed import
rishikraj990 9ebfd92
migrated CollectRecordAndInnerMethod on record
rishikraj990 506e4c4
migrated FieldInitEntities on record
rishikraj990 a14c9ce
migrated CfgParams from AutoValue to direct
rishikraj990 9de1799
removed auto-value dependencies
rishikraj990 32806d6
replace java doc
rishikraj990 5dd8b69
remove autovalue dependencies for model gen module
rishikraj990 f7fd4bd
java doc correction
rishikraj990 21d6359
correcting
rishikraj990 3000a24
Merge branch 'master' into autoValue2Records
rishikraj990 f8671ff
Updating the java doc
rishikraj990 fa305c1
remove autoValue from build gradle
rishikraj990 91f0cdc
Merge branch 'master' into autoValue2Records
rishikraj990 b449530
applied spotlessApply
rishikraj990 d85b929
resolved nullable warning
rishikraj990 06ccd25
restore autovalue for benchmark
msridhar c2e6bda
updated java doc by moving details to record rather than in method
rishikraj990 c67a209
Refactor ContractsTests to use Java text blocks (#1435)
cobayo 158fbd2
Update Error Prone and errorprone-plugin versions (#1434)
msridhar daec884
convert docs
msridhar 99049cb
Merge branch 'master' into autoValue2Records
msridhar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
15 changes: 5 additions & 10 deletions
15
...ary-model-generator/src/main/java/com/uber/nullaway/libmodel/MethodAnnotationsRecord.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,19 @@ | ||
| package com.uber.nullaway.libmodel; | ||
|
|
||
| import com.google.auto.value.AutoValue; | ||
| import com.google.common.collect.ImmutableMap; | ||
| import com.google.common.collect.ImmutableSet; | ||
|
|
||
| /** A record describing the annotations associated with a java method and its arguments. */ | ||
| @AutoValue | ||
| public abstract class MethodAnnotationsRecord { | ||
| public record MethodAnnotationsRecord( | ||
| ImmutableSet<String> methodAnnotations, | ||
| ImmutableSet<Integer> typeParamNullableUpperbounds, | ||
| ImmutableMap<Integer, ImmutableSet<String>> argumentAnnotations) { | ||
|
|
||
| public static MethodAnnotationsRecord create( | ||
| ImmutableSet<String> methodAnnotations, | ||
| ImmutableSet<Integer> typeParamNullableUpperbounds, | ||
| ImmutableMap<Integer, ImmutableSet<String>> argumentAnnotations) { | ||
| return new AutoValue_MethodAnnotationsRecord( | ||
| return new MethodAnnotationsRecord( | ||
| methodAnnotations, typeParamNullableUpperbounds, argumentAnnotations); | ||
| } | ||
|
|
||
| abstract ImmutableSet<String> methodAnnotations(); | ||
|
|
||
| abstract ImmutableSet<Integer> typeParamNullableUpperbounds(); | ||
|
|
||
| abstract ImmutableMap<Integer, ImmutableSet<String>> argumentAnnotations(); | ||
| } | ||
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.