Skip to content

Commit

Permalink
move to contstant
Browse files Browse the repository at this point in the history
  • Loading branch information
cdietrich committed Aug 7, 2024
1 parent 7e7ff86 commit 67448f8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,10 @@ protected IClasspathEntry getResolvedClasspathEntry(IJavaProject javaProject, /*
return result;
}

final Version jdtCoreVersion = JavaCore.getPlugin().getBundle().getVersion();

protected final boolean isJdtCoreVersionAtLeast3390 = JavaCore.getPlugin().getBundle().getVersion().compareTo(new Version(3, 39, 0)) >= 0;
protected Map<IPath, IClasspathEntry> getRootPathToResolvedEntries(PerProjectInfo info) {
if (jdtCoreVersion.compareTo(new Version(3, 39, 0)) >= 0) {
if (isJdtCoreVersionAtLeast3390) {
try {
Method m = PerProjectInfo.class.getDeclaredMethod("getRootPathToResolvedEntries");
@SuppressWarnings("unchecked")
Expand Down

0 comments on commit 67448f8

Please sign in to comment.