File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,8 +26,14 @@ public Name getTarget() {
2626 return getSingleName ();
2727 }
2828
29- /** Gets the alias specified by the CNAME Record */
29+ /**
30+ * Gets the name of this record, aka the <i>alias</i> or <i>label</i> to the <i>canonical name</i>
31+ * specified in {@link #getTarget()}.
32+ *
33+ * @deprecated use {@link #getName()}
34+ */
35+ @ Deprecated
3036 public Name getAlias () {
31- return getSingleName ();
37+ return getName ();
3238 }
3339}
Original file line number Diff line number Diff line change @@ -25,8 +25,14 @@ public Name getTarget() {
2525 return getSingleName ();
2626 }
2727
28- /** Gets the alias specified by the DNAME Record */
28+ /**
29+ * Gets the name of this record, aka the <i>alias</i> or <i>label</i> to the <i>delegation
30+ * name</i> specified in {@link #getTarget()}.
31+ *
32+ * @deprecated use {@link #getName()}
33+ */
34+ @ Deprecated
2935 public Name getAlias () {
30- return getSingleName ();
36+ return getName ();
3137 }
3238}
Original file line number Diff line number Diff line change 3939
4040import org .junit .jupiter .api .Test ;
4141
42+ @ SuppressWarnings ("deprecation" )
4243class CNAMERecordTest {
4344 @ Test
4445 void ctor_0arg () {
@@ -59,6 +60,6 @@ void ctor_4arg() throws TextParseException {
5960 assertEquals (DClass .IN , d .getDClass ());
6061 assertEquals (0xABCDEL , d .getTTL ());
6162 assertEquals (a , d .getTarget ());
62- assertEquals (a , d .getAlias ());
63+ assertEquals (n , d .getAlias ());
6364 }
6465}
Original file line number Diff line number Diff line change 3939
4040import org .junit .jupiter .api .Test ;
4141
42+ @ SuppressWarnings ("deprecation" )
4243class DNAMERecordTest {
4344 @ Test
4445 void ctor_0arg () {
@@ -59,6 +60,6 @@ void ctor_4arg() throws TextParseException {
5960 assertEquals (DClass .IN , d .getDClass ());
6061 assertEquals (0xABCDEL , d .getTTL ());
6162 assertEquals (a , d .getTarget ());
62- assertEquals (a , d .getAlias ());
63+ assertEquals (n , d .getAlias ());
6364 }
6465}
You can’t perform that action at this time.
0 commit comments