Skip to content

Commit c5ef194

Browse files
committed
Silence warnings for unused lambda params
1 parent c82101f commit c5ef194

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

scripts/releng/TestResultsGenerator.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
21
/*******************************************************************************
3-
* Copyright (c) 2000, 2025 IBM Corporation and others.
2+
* Copyright (c) 2000, 2026 IBM Corporation and others.
43
*
54
* This program and the accompanying materials
65
* are made available under the terms of the Eclipse Public License 2.0
@@ -163,7 +162,7 @@ private void parseJUnitTestsXml() throws Exception {
163162
collectErrors(junitResultsFile, test);
164163
String testPluginName = computeCoreName(filename);
165164
String configuration = computeConfig(filename);
166-
JSON.Object summary = summaries.computeIfAbsent(configuration, c -> JSON.Object.create());
165+
JSON.Object summary = summaries.computeIfAbsent(configuration, _ -> JSON.Object.create());
167166
summary.add(testPluginName, test);
168167
}
169168

scripts/releng/utilities/XmlProcessorFactoryRelEng.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2023, 2025 Joerg Kubitz and others.
2+
* Copyright (c) 2023, 2026 Joerg Kubitz and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -77,7 +77,7 @@ public static synchronized Document parseDocumentWithErrorOnDOCTYPE(Path file)
7777
public static synchronized Document parseDocumentIgnoringDOCTYPE(Path file)
7878
throws ParserConfigurationException, IOException, SAXException {
7979
DocumentBuilder builder = DOCUMENT_BUILDER_FACTORY_IGNORING_DOCTYPE.newDocumentBuilder();
80-
builder.setEntityResolver((__, ___) -> new InputSource(new ByteArrayInputStream(new byte[0])));
80+
builder.setEntityResolver((_, _) -> new InputSource(new ByteArrayInputStream(new byte[0])));
8181
return builder.parse((file.toFile()));
8282
}
8383

0 commit comments

Comments
 (0)