Skip to content

Java: Model guava cache package #6387

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 8 commits into from
Aug 19, 2021
Merged

Conversation

joefarebrother
Copy link
Contributor

No description provided.

@github-actions
Copy link
Contributor

⚠️ The head of this PR and the base branch were compared for differences in the framework coverage reports. The generated reports are available in the artifacts of this workflow run. The differences will be picked up by the nightly job after the PR gets merged. The following differences were found:

java

Generated file changes for java

  • Changes to framework-coverage-java.rst:
-    `Google Guava <https://guava.dev/>`_,``com.google.common.*``,,158,6,,6,,,,,
+    `Google Guava <https://guava.dev/>`_,``com.google.common.*``,,172,6,,6,,,,,
-    Totals,,84,2465,296,13,6,6,107,33,1,66
+    Totals,,84,2479,296,13,6,6,107,33,1,66
  • Changes to framework-coverage-java.csv:
+ com.google.common.cache,,,14,,,,,,,,,,,,,,,,14

"com.google.common.cache;LoadingCache;true;get;(Object);;MapValue of Argument[-1];ReturnValue;value",
"com.google.common.cache;LoadingCache;true;getUnchecked;(Object);;MapValue of Argument[-1];ReturnValue;value",
"com.google.common.cache;LoadingCache;true;apply;(Object);;MapValue of Argument[-1];ReturnValue;value",
"com.google.common.cache;LoadingCache;true;getAll;(Iterable);;Element of Argument[0];MapKey of ReturnValue;value",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest MapKey of Argument[-1] instead of Element of Argument[0], since elements that only occur in the requested keys won't actually be present in the result

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm; stritly apeaking its the intersection of these, which we don't have a good way to model.

Copy link
Contributor

Choose a reason for hiding this comment

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

Indeed, coming from the MapKey of the qualifier would at least be consistent with entrySet and similar though

@github-actions
Copy link
Contributor

⚠️ The head of this PR and the base branch were compared for differences in the framework coverage reports. The generated reports are available in the artifacts of this workflow run. The differences will be picked up by the nightly job after the PR gets merged. The following differences were found:

java

Generated file changes for java

  • Changes to framework-coverage-java.rst:
-    `Google Guava <https://guava.dev/>`_,``com.google.common.*``,,158,6,,6,,,,,
+    `Google Guava <https://guava.dev/>`_,``com.google.common.*``,,172,6,,6,,,,,
-    Totals,,84,2711,398,13,6,6,107,33,1,66
+    Totals,,84,2725,398,13,6,6,107,33,1,66
  • Changes to framework-coverage-java.csv:
+ com.google.common.cache,,,14,,,,,,,,,,,,,,,,,,,,14

smowton
smowton previously approved these changes Aug 12, 2021
smowton
smowton previously approved these changes Aug 12, 2021
"com.google.common.cache;LoadingCache;true;get;(Object);;MapValue of Argument[-1];ReturnValue;value",
"com.google.common.cache;LoadingCache;true;getUnchecked;(Object);;MapValue of Argument[-1];ReturnValue;value",
"com.google.common.cache;LoadingCache;true;apply;(Object);;MapValue of Argument[-1];ReturnValue;value",
"com.google.common.cache;LoadingCache;true;getAll;(Iterable);;MapKey of Argument[-1];MapKey of ReturnValue;value", // technically, an interection between MapKey of Argument[-1] and Element of Argument[0]; but we don't model intersections.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"com.google.common.cache;LoadingCache;true;getAll;(Iterable);;MapKey of Argument[-1];MapKey of ReturnValue;value", // technically, an interection between MapKey of Argument[-1] and Element of Argument[0]; but we don't model intersections.
"com.google.common.cache;LoadingCache;true;getAll;(Iterable);;MapKey of Argument[-1];MapKey of ReturnValue;value", // technically, an intersection between MapKey of Argument[-1] and Element of Argument[0]; but we don't model intersections.

Copy link
Contributor

Choose a reason for hiding this comment

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

It seems like getAll creates elements that are missing, so this source should be Element of Argument[0], right? Also, if you wanted to model the intersections Cache.getAll above should probably also have a MapKey model.

Copy link
Contributor Author

@joefarebrother joefarebrother Aug 16, 2021

Choose a reason for hiding this comment

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

Good point; the fact that it creates missing elements means it's not actually an intersection; rather it has flow from Element of Argument[0] to MapKey of Argument[-1] and Element of Argument[0] to MapKey of ReturnValue.

@github-actions
Copy link
Contributor

⚠️ The head of this PR and the base branch were compared for differences in the framework coverage reports. The generated reports are available in the artifacts of this workflow run. The differences will be picked up by the nightly job after the PR gets merged. The following differences were found:

java

Generated file changes for java

  • Changes to framework-coverage-java.rst:
-    `Google Guava <https://guava.dev/>`_,``com.google.common.*``,,158,6,,6,,,,,
+    `Google Guava <https://guava.dev/>`_,``com.google.common.*``,,175,6,,6,,,,,
-    Totals,,84,2711,398,13,6,6,107,33,1,66
+    Totals,,84,2728,398,13,6,6,107,33,1,66
  • Changes to framework-coverage-java.csv:
+ com.google.common.cache,,,17,,,,,,,,,,,,,,,,,,,,17

@joefarebrother joefarebrother merged commit 9dc28eb into github:main Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants