MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / clone

Method clone

src/main/java/org/htmlunit/html/HtmlPage.java:2048–2058  ·  view source on GitHub ↗

Creates a clone of this instance, and clears cached state to be not shared with the original. @return a clone of this instance

()

Source from the content-addressed store, hash-verified

2046 * @return a clone of this instance
2047 */
2048 @Override
2049 protected HtmlPage clone() {
2050 final HtmlPage result = (HtmlPage) super.clone();
2051 result.elementWithFocus_ = null;
2052
2053 result.idMap_ = new ConcurrentHashMap<>();
2054 result.nameMap_ = new ConcurrentHashMap<>();
2055 result.mappedElementsBuilt_ = false;
2056
2057 return result;
2058 }
2059
2060 /**
2061 * {@inheritDoc}

Callers 2

cloneNodeMethod · 0.45
cloneNodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected