Skip to content

Commit

Permalink
unmodifiable
Browse files Browse the repository at this point in the history
  • Loading branch information
Иван Иванчук committed Sep 30, 2023
1 parent 8a9b36e commit b3fc5dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/io/github/eocqrs/ohip/EnvironmentEnvelope.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.github.eocqrs.ohip;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

Expand Down Expand Up @@ -68,14 +69,14 @@ protected EnvironmentEnvelope(
}

@Override
public final Map<String, String> value() throws Exception {
public final Map<String, String> value() {
final Map<String, String> vars = new HashMap<>(6);
vars.put("hostname", this.hostname);
vars.put("app", this.app);
vars.put("auth", this.auth);
vars.put("username", this.username);
vars.put("password", this.password);
vars.put("hotel", this.hotel);
return vars;
return Collections.unmodifiableMap(vars);
}
}

0 comments on commit b3fc5dc

Please sign in to comment.