diff --git a/check/runtime/src/main/java/org/eclipse/daanse/olap/check/runtime/api/package-info.java b/check/runtime/src/main/java/org/eclipse/daanse/olap/check/runtime/api/package-info.java new file mode 100644 index 0000000..10be2f3 --- /dev/null +++ b/check/runtime/src/main/java/org/eclipse/daanse/olap/check/runtime/api/package-info.java @@ -0,0 +1,16 @@ +/* +* Copyright (c) 2025 Contributors to the Eclipse Foundation. +* +* This program and the accompanying materials are made +* available under the terms of the Eclipse Public License 2.0 +* which is available at https://www.eclipse.org/legal/epl-2.0/ +* +* SPDX-License-Identifier: EPL-2.0 +* +* Contributors: +* SmartCity Jena - initial +*/ + +@org.osgi.annotation.bundle.Export +@org.osgi.annotation.versioning.Version("0.0.1") +package org.eclipse.daanse.olap.check.runtime.api; \ No newline at end of file diff --git a/common/src/main/java/org/eclipse/daanse/olap/common/Util.java b/common/src/main/java/org/eclipse/daanse/olap/common/Util.java index 5224148..c61daed 100644 --- a/common/src/main/java/org/eclipse/daanse/olap/common/Util.java +++ b/common/src/main/java/org/eclipse/daanse/olap/common/Util.java @@ -2279,15 +2279,10 @@ public static String readURL( Map map) throws IOException { - final Reader r = - new BufferedReader(new InputStreamReader(url.openStream())); final int BUF_SIZE = 8096; - try { + try (Reader r = new BufferedReader(new InputStreamReader(url.openStream()))) { String xmlCatalog = readFully(r, BUF_SIZE); - xmlCatalog = Util.replaceProperties(xmlCatalog, map); - return xmlCatalog; - } finally { - r.close(); + return Util.replaceProperties(xmlCatalog, map); } }