-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Conversation
javaGenerated file changes for java
- `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
+ 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", |
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.
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
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.
Hmm; stritly apeaking its the intersection of these, which we don't have a good way to model.
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.
Indeed, coming from the MapKey of the qualifier would at least be consistent with entrySet
and similar though
javaGenerated file changes for java
- `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
+ 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);;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. |
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.
"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. |
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.
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.
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.
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
.
84ccb61
to
076aeb5
Compare
javaGenerated file changes for java
- `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
+ com.google.common.cache,,,17,,,,,,,,,,,,,,,,,,,,17 |
No description provided.