Creates a clone of this instance, and clears cached state to be not shared with the original. @return a clone of this instance
()
| 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} |