File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
core/src/main/java/spotty Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff line change 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+ */
116package spotty .server ;
217
318import 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 ();
You can’t perform that action at this time.
0 commit comments