Mercurial > hg > monetdb-java
comparison src/main/java/org/monetdb/mcl/net/MonetUrlParser.java @ 863:9d21c6e7ed26
Suppress warning: [fallthrough] possible fall-through into case
Also add missing license header
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 01 Feb 2024 17:12:48 +0100 (15 months ago) |
parents | 5aa19bbed0d6 |
children | 2543e24eb79a |
comparison
equal
deleted
inserted
replaced
862:811cfafcc242 | 863:9d21c6e7ed26 |
---|---|
1 /* | |
2 * SPDX-License-Identifier: MPL-2.0 | |
3 * | |
4 * This Source Code Form is subject to the terms of the Mozilla Public | |
5 * License, v. 2.0. If a copy of the MPL was not distributed with this | |
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
7 * | |
8 * Copyright 2024 MonetDB Foundation; | |
9 * Copyright August 2008 - 2023 MonetDB B.V.; | |
10 * Copyright 1997 - July 2008 CWI. | |
11 */ | |
12 | |
1 package org.monetdb.mcl.net; | 13 package org.monetdb.mcl.net; |
2 | 14 |
3 import java.io.UnsupportedEncodingException; | 15 import java.io.UnsupportedEncodingException; |
4 import java.net.URI; | 16 import java.net.URI; |
5 import java.net.URISyntaxException; | 17 import java.net.URISyntaxException; |
70 } catch (UnsupportedEncodingException e) { | 82 } catch (UnsupportedEncodingException e) { |
71 throw new RuntimeException(e); | 83 throw new RuntimeException(e); |
72 } | 84 } |
73 } | 85 } |
74 | 86 |
87 @SuppressWarnings("fallthrough") | |
75 private void parseModern() throws URISyntaxException, ValidationError { | 88 private void parseModern() throws URISyntaxException, ValidationError { |
76 clearBasic(); | 89 clearBasic(); |
77 | 90 |
78 String scheme = url.getScheme(); | 91 String scheme = url.getScheme(); |
79 if (scheme == null) | 92 if (scheme == null) |