Skip to content

Commit d445fe8

Browse files
authored
Fixed confusing parameter name in CNAMERecord (#354)
1 parent f7a5277 commit d445fe8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/org/xbill/DNS/CNAMERecord.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ public class CNAMERecord extends SingleCompressedNameBase {
1616
/**
1717
* Creates a new CNAMERecord with the given data
1818
*
19-
* @param alias The name to which the CNAME alias points
19+
* @param target The name to which the CNAME alias points
2020
*/
21-
public CNAMERecord(Name name, int dclass, long ttl, Name alias) {
22-
super(name, Type.CNAME, dclass, ttl, alias, "alias");
21+
public CNAMERecord(Name name, int dclass, long ttl, Name target) {
22+
super(name, Type.CNAME, dclass, ttl, target, "target");
2323
}
2424

2525
/** Gets the target of the CNAME Record */

0 commit comments

Comments
 (0)