Skip to content

Commit 96730b0

Browse files
committed
CodeQL warnings fixes
In wildwebdeveloper.xml
1 parent 036441e commit 96730b0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

org.eclipse.wildwebdeveloper.xml/src/org/eclipse/wildwebdeveloper/xml/internal/ui/preferences/XMLCatalogPreferencePage.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2020 Red Hat Inc. and others.
2+
* Copyright (c) 2020, 2025 Red Hat Inc. and others.
33
*
44
* This program and the accompanying materials are made
55
* available under the terms of the Eclipse Public License 2.0
@@ -187,7 +187,7 @@ private File openSelectFileDialog() {
187187
return fileName == null || fileName.trim().length() == 0 ? null : new File(fileName);
188188
}
189189

190-
class EntriesContentProvider implements ITreeContentProvider {
190+
static class EntriesContentProvider implements ITreeContentProvider {
191191
@Override
192192
public Object[] getChildren(Object parentElement) {
193193
if (parentElement instanceof Set<?> set) {
@@ -220,7 +220,7 @@ public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
220220
}
221221
}
222222

223-
class EntriesLabelProvider extends LabelProvider {
223+
static class EntriesLabelProvider extends LabelProvider {
224224
private Image image;
225225

226226
public EntriesLabelProvider() {

org.eclipse.wildwebdeveloper.xml/src/org/eclipse/wildwebdeveloper/xml/internal/ui/preferences/XMLCatalogs.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2021 Red Hat Inc. and others.
2+
* Copyright (c) 2021, 2025 Red Hat Inc. and others.
33
*
44
* This program and the accompanying materials are made
55
* available under the terms of the Eclipse Public License 2.0
@@ -226,7 +226,7 @@ private static URI convertToURI(URL url) throws URISyntaxException, MalformedURL
226226
/**
227227
* Check whether the provided scheme is supported for the XML-catalog
228228
*
229-
* @param scheme scheme to test
229+
* @param uri scheme to test
230230
* @return <code>true</code> if supported, otherwise <code>false</code>
231231
*/
232232
private static boolean isSchemeSupportedInCatalog(URI uri) {

0 commit comments

Comments
 (0)