Skip to content

Commit

Permalink
Fix compiler warnings in pde apitools tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
akurtakov committed Jan 4, 2024
1 parent 6085e94 commit 427e060
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2008, 2018 IBM Corporation and others.
* Copyright (c) 2008, 2024 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand Down Expand Up @@ -563,7 +563,8 @@ private IApiFilterStore getFilterStore(String name) {
* @return an element that contains all the api problem nodes or null if an
* error occurred
*/
private void insertAPIProblems(Element root, Document document, List<IApiProblem> problems, ProblemCounter counter) throws CoreException {
private void insertAPIProblems(Element root, Document document, List<IApiProblem> problems,
ProblemCounter counter) {
Element apiProblems = document.createElement(IApiXmlConstants.ELEMENT_API_PROBLEMS);
root.appendChild(apiProblems);
Element element = null;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2008, 2018 IBM Corporation and others.
* Copyright (c) 2008, 2024 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand Down Expand Up @@ -307,7 +307,7 @@ private void dumpIndexEntry(int i, PrintWriter writer, Summary summary) {
/**
* Write out the index file
*/
private void dumpIndexFile(File reportsRoot, Summary[] summaries, Summary allNonApiBundleSummary) {
private void dumpIndexFile(Summary[] summaries, Summary allNonApiBundleSummary) {
File htmlFile = new File(this.htmlReportsLocation, "index.html"); //$NON-NLS-1$
try (PrintWriter writer = new PrintWriter(new BufferedWriter(new FileWriter(htmlFile)))) {
if (allNonApiBundleSummary != null) {
Expand Down Expand Up @@ -469,7 +469,7 @@ public void execute() throws BuildException {
if (!summariesList.isEmpty() || nonApiBundleSummary != null) {
Summary[] summaries = new Summary[summariesList.size()];
summariesList.toArray(summaries);
dumpIndexFile(reportsRoot, summaries, nonApiBundleSummary);
dumpIndexFile(summaries, nonApiBundleSummary);
}
}
} catch (SAXException | IOException e) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2011, 2018 IBM Corporation and others.
* Copyright (c) 2011, 2024 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand Down Expand Up @@ -358,7 +358,7 @@ public void reportNotSearched(Set<SkippedComponent> notSearchedList) {
/**
* Adds {@link IApiProblem}s to the given document and root
*/
private void insertAPIProblems(Element root, Document document, List<IApiProblem> problems) throws CoreException {
private void insertAPIProblems(Element root, Document document, List<IApiProblem> problems) {
Element apiProblems = document.createElement(IApiXmlConstants.ELEMENT_API_PROBLEMS);
root.appendChild(apiProblems);
Element element = null;
Expand Down

0 comments on commit 427e060

Please sign in to comment.