diff --git a/eo-runtime/src/main/java/org/eolang/PhDefault.java b/eo-runtime/src/main/java/org/eolang/PhDefault.java index d8ae1d4be9..b8d97facd3 100644 --- a/eo-runtime/src/main/java/org/eolang/PhDefault.java +++ b/eo-runtime/src/main/java/org/eolang/PhDefault.java @@ -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); } @@ -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 defaults() { + final Map attrs = new HashMap<>(0); + attrs.put(Attr.RHO, new AtRho()); + return attrs; + } + /** * Log debug message for PhDefault. * @param msg Message to log