Skip to content

Commit

Permalink
Fixed naming and added javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Desire456 committed Jul 6, 2021
1 parent 2ce6d99 commit 48caf01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public void renderDocument() {
findVerticalDependencies();

result.clearWorkbook();
result.excludeDefinedNames(rootBand);
result.clearBandDefinedNames(rootBand);

for (BandData childBand : rootBand.getChildrenList()) {
checkThreadInterrupted();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,10 @@ public void clearWorkbook() {
}
}

public void excludeDefinedNames(BandData rootBand) {
/**
* Method clears defined names associated with band data and leaves all other defined names in the workbook
*/
public void clearBandDefinedNames(BandData rootBand) {
workbook.getDefinedNames().getDefinedName().removeIf(
ctDefinedName -> rootBand.findBandRecursively(ctDefinedName.getName()) != null
);
Expand Down

0 comments on commit 48caf01

Please sign in to comment.