This repository was archived by the owner on Mar 16, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
src/main/kotlin/io/openapiprocessor/core/support Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/*
2- * Copyright 2020 the original authors
3- *
4- * Licensed under the Apache License, Version 2.0 (the "License");
5- * you may not use this file except in compliance with the License.
6- * You may obtain a copy of the License at
7- *
8- * http://www.apache.org/licenses/LICENSE-2.0
9- *
10- * Unless required by applicable law or agreed to in writing, software
11- * distributed under the License is distributed on an "AS IS" BASIS,
12- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13- * See the License for the specific language governing permissions and
14- * limitations under the License.
2+ * Copyright 2020 https://github.com/openapi-processor/openapi-processor-core
3+ * PDX-License-Identifier: Apache-2.0
154 */
165
176package io.openapiprocessor.core.support
187
198import java.net.URL
209import java.nio.file.Paths
2110
22-
2311/* *
2412 * convert a source string to a valid URL.
2513 *
26- * if the source is an url string it converts it to an URL
27- * if the source is not an URL it assumes a local path and prefixes it with file://(//) to
28- * create a valid URL.
14+ * if the source is an url string it converts it to a URL
2915 *
3016 * @param source source path or url
31- * @return an URL to the given source
32- *
33- * @author Martin Hauner
17+ * @return a URL to the given source
3418 */
3519
3620fun toURL (source : String ): URL {
You can’t perform that action at this time.
0 commit comments