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

Cleanup code #1389

Merged
merged 15 commits into from
Mar 8, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
replace calling a few old api methods by the newone from java 8 api
aleksandy committed Feb 22, 2022
commit 34af862718c023b0104fbfabbe2d919680196e45
6 changes: 3 additions & 3 deletions framework/src/play/classloading/ApplicationClasses.java
Original file line number Diff line number Diff line change
@@ -47,9 +47,9 @@ public void clear() {
* @return The ApplicationClass or null
*/
public ApplicationClass getApplicationClass(String name) {
return classes.computeIfAbsent(name, key -> {
VirtualFile javaFile = getJava(name);
return javaFile == null ? null : new ApplicationClass(name, javaFile);
return classes.computeIfAbsent(name, className -> {
VirtualFile javaFile = getJava(className);
return javaFile == null ? null : new ApplicationClass(className, javaFile);
});
}