Skip to content

Commit

Permalink
Fix bug in getting segments of packagebinding
Browse files Browse the repository at this point in the history
Signed-off-by: David Thompson <[email protected]>
  • Loading branch information
datho7561 committed Jun 5, 2024
1 parent 334db78 commit 881dabe
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public IJavaElement getJavaElement() {
.filter(IPackageFragment::exists)
.findFirst()
.orElse(null);

// TODO need to make sure the package is accessible in the module. :|
return ret;
} catch (JavaModelException e) {
Expand All @@ -99,7 +99,7 @@ public IJavaElement getJavaElement() {
return null;
}
}

public IModuleBinding getModule() {
return this.resolver.bindings.getModuleBinding(this.packageSymbol.modle);
}
Expand Down Expand Up @@ -131,7 +131,7 @@ public boolean isUnnamed() {

@Override
public String[] getNameComponents() {
return isUnnamed()? new String[0] : this.packageSymbol.getQualifiedName().toString().split("."); //$NON-NLS-1$
return isUnnamed()? new String[0] : this.packageSymbol.getQualifiedName().toString().split("\\."); //$NON-NLS-1$
}

@Override
Expand Down

0 comments on commit 881dabe

Please sign in to comment.