Skip to content

Commit

Permalink
Merge pull request #22 from l3r8yJ/21
Browse files Browse the repository at this point in the history
21
  • Loading branch information
Aliaksei Bialiauski authored Sep 30, 2023
2 parents 1ebf31e + b3fc5dc commit 53ef1fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
# BlueJ files
*.ctxt

/target

# Mobile Tools for Java (J2ME)
.mtj.tmp/

Expand All @@ -22,3 +24,5 @@
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*
.idea
DS_store
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 53ef1fe

Please sign in to comment.