Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/Node.java @ 22325:414e82b9fc35
Release 0.9 is out, let's remove deprecated elements from the API
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Fri, 23 Oct 2015 20:23:00 +0200 |
parents | 0d36601f233e |
children | 0d4b0e4263ee |
comparison
equal
deleted
inserted
replaced
22324:ad67d348e361 | 22325:414e82b9fc35 |
---|---|
390 public Node deepCopy() { | 390 public Node deepCopy() { |
391 return NodeUtil.deepCopyImpl(this); | 391 return NodeUtil.deepCopyImpl(this); |
392 } | 392 } |
393 | 393 |
394 /** | 394 /** |
395 * This method must never be called. It enforces that {@link Object#clone} is not directly | |
396 * called by subclasses. Use the {@link #copy()} method instead. | |
397 */ | |
398 @Override | |
399 @Deprecated | |
400 protected final Object clone() throws CloneNotSupportedException { | |
401 throw new IllegalStateException("This method should never be called, use the copy method instead!"); | |
402 } | |
403 | |
404 /** | |
405 * Get the root node of the tree a node belongs to. | 395 * Get the root node of the tree a node belongs to. |
406 * | 396 * |
407 * @return the {@link RootNode} or {@code null} if there is none. | 397 * @return the {@link RootNode} or {@code null} if there is none. |
408 */ | 398 */ |
409 public final RootNode getRootNode() { | 399 public final RootNode getRootNode() { |