Skip to content
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

Java ApiView: Add context to annotation id #5426

Merged
merged 3 commits into from
Feb 13, 2023
Merged

Conversation

srnagar
Copy link
Member

@srnagar srnagar commented Feb 13, 2023

Currently, annotation ids include line numbers which can change when the source code changes and results in incorrectly showing a diff in API view.
image

This PR changes the annotation id to use the context (i.e the node on which the annotation is defined) to create the id.

Before:

{
    "DefinitionId" : "com.azure.data.appconfiguration.ConfigurationAsyncClient.ServiceClient-L51",
    "Kind" : 6,
    "Value" : "@ServiceClient"
  },

After

{
    "DefinitionId" : "com.azure.data.appconfiguration.ConfigurationAsyncClient.ServiceClient-ConfigurationAsyncClient",
    "Kind" : 6,
    "Value" : "@ServiceClient"
  },

@srnagar srnagar requested a review from a team as a code owner February 13, 2023 08:21
@srnagar srnagar merged commit c806a96 into Azure:main Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants