Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Commit e6b8f51

Browse files
committed
clean up
1 parent 585fb42 commit e6b8f51

1 file changed

Lines changed: 4 additions & 20 deletions

File tree

  • src/main/kotlin/io/openapiprocessor/core/support

src/main/kotlin/io/openapiprocessor/core/support/URL.kt

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,20 @@
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

176
package io.openapiprocessor.core.support
187

198
import java.net.URL
209
import 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

3620
fun toURL(source: String): URL {

0 commit comments

Comments
 (0)