|
1 | 1 | /*
|
2 |
| - * Copyright 2019 The Exonum Team |
| 2 | + * Copyright 2020 The Exonum Team |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
6 | 6 | * You may obtain a copy of the License at
|
7 | 7 | *
|
8 |
| - * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | + * https://www.apache.org/licenses/LICENSE-2.0 |
9 | 9 | *
|
10 | 10 | * Unless required by applicable law or agreed to in writing, software
|
11 | 11 | * distributed under the License is distributed on an "AS IS" BASIS,
|
|
14 | 14 | * limitations under the License.
|
15 | 15 | */
|
16 | 16 |
|
17 |
| -package com.exonum.binding.core.runtime; |
| 17 | +package com.exonum.binding.common.runtime; |
18 | 18 |
|
19 |
| -import static com.exonum.binding.core.runtime.RuntimeId.JAVA; |
| 19 | +import static com.exonum.binding.common.runtime.RuntimeId.JAVA; |
20 | 20 | import static com.google.common.base.Preconditions.checkArgument;
|
21 | 21 | import static java.lang.Integer.parseInt;
|
22 |
| -import static org.apache.logging.log4j.util.Strings.isNotBlank; |
23 | 22 |
|
24 | 23 | import com.exonum.messages.core.runtime.Base.ArtifactId;
|
25 | 24 | import com.google.auto.value.AutoValue;
|
@@ -94,6 +93,10 @@ public static ServiceArtifactId valueOf(int runtimeId, String name, String versi
|
94 | 93 | return new AutoValue_ServiceArtifactId(runtimeId, name, version);
|
95 | 94 | }
|
96 | 95 |
|
| 96 | + private static boolean isNotBlank(String s) { |
| 97 | + return !s.trim().isEmpty(); |
| 98 | + } |
| 99 | + |
97 | 100 | /**
|
98 | 101 | * Creates a new service artifact from the given artifact id message.
|
99 | 102 | */
|
|
0 commit comments