Skip to content

Commit 6d79af3

Browse files
author
Alex Danilenko
committed
license comment
1 parent d03bfc4 commit 6d79af3

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

core/src/main/java/spotty/common/state/StateHandlerGraph.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public final class StateHandlerGraph<S extends Enum<S>> {
3737
public void handleState(S state) {
3838
final Node node = nodes.get(state);
3939
if (node == null) {
40-
throw new SpottyException(format("node not found for state %s", state));
40+
throw new SpottyException("node not found for state %s", state);
4141
}
4242

4343
final GraphFilter filter = filters.getOrDefault(state, GraphFilter.EMPTY);

core/src/main/java/spotty/server/Server.java

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright 2022 - Alex Danilenko
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.
15+
*/
116
package spotty.server;
217

318
import org.slf4j.Logger;
@@ -174,12 +189,12 @@ public String host() {
174189
public String hostUrl() {
175190
final StringBuilder sb = new StringBuilder("http");
176191
if (enabledHttps) {
177-
sb.append("s");
192+
sb.append('s');
178193
}
179194

180195
sb.append("://");
181196
sb.append(host());
182-
sb.append(":");
197+
sb.append(':');
183198
sb.append(port());
184199

185200
return sb.toString();

0 commit comments

Comments
 (0)