Skip to content

Commit

Permalink
bug(#3790): put
Browse files Browse the repository at this point in the history
  • Loading branch information
maxonfjvipon committed Jan 10, 2025
1 parent 37a9073 commit 0e3ec46
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion eo-runtime/src/main/java/org/eolang/PhDefault.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public PhDefault() {
*/
public PhDefault(final byte[] dta) {
this.data = Optional.ofNullable(dta);
this.attrs = Map.of(Attr.RHO, new AtRho());
this.attrs = PhDefault.defaults();
this.order = new HashMap<>(0);
}

Expand Down Expand Up @@ -302,6 +302,16 @@ private String oname() {
return txt;
}

/**
* Default attributes hash map with RHO attribute put.
* @return Default attributes hash map
*/
private static Map<String, Attr> defaults() {
final Map<String, Attr> attrs = new HashMap<>(0);
attrs.put(Attr.RHO, new AtRho());
return attrs;
}

/**
* Log debug message for PhDefault.
* @param msg Message to log
Expand Down

0 comments on commit 0e3ec46

Please sign in to comment.