Fixes CCE: JavaNature cannot be cast to IJavaProject (#1222)

Due to changes in
4869388c33
this cast will result in a ClassCastException
This commit is contained in:
Brian Fernandes
2024-04-04 17:39:21 +05:30
committed by GitHub
parent 0efe8cd63a
commit e89adc6a94
2 changed files with 2 additions and 2 deletions

View File

@@ -333,7 +333,7 @@ public class JdtUtils {
if (project.isAccessible()) {
try {
if (project.hasNature(JavaCore.NATURE_ID)) {
return (IJavaProject) project.getNature(JavaCore.NATURE_ID);
return JavaCore.create(project);
}
}
catch (CoreException e) {