From: David ‘Bombe’ Roden Date: Mon, 9 Mar 2009 23:09:47 +0000 (+0100) Subject: Rename member “edition” to “number”. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=fc050c8c24829a3c7287d610ab7b180d2e8cff86;p=arachne.git Rename member “edition” to “number”. --- diff --git a/src/net/pterodactylus/arachne/core/Edition.java b/src/net/pterodactylus/arachne/core/Edition.java index 547c83c..b2210ed 100644 --- a/src/net/pterodactylus/arachne/core/Edition.java +++ b/src/net/pterodactylus/arachne/core/Edition.java @@ -17,20 +17,20 @@ public class Edition { private final Site site; /** The edition number of the edition. */ - private final int edition; + private final int number; /** * Creates a new edition. * * @param site * The site of the edition - * @param edition + * @param number * The edition number of the edition */ - public Edition(Site site, int edition) { - Validation.begin().isNotNull("site", site).isPositive("edition", edition).check(); + public Edition(Site site, int number) { + Validation.begin().isNotNull("site", site).isPositive("edition", number).check(); this.site = site; - this.edition = edition; + this.number = number; } /** @@ -47,8 +47,8 @@ public class Edition { * * @return This edition’s edition number */ - public int getEdition() { - return edition; + public int getNumber() { + return number; } // @@ -62,7 +62,7 @@ public class Edition { */ @Override public String toString() { - return getClass().getName() + "[site=" + site + ",edition=" + edition + "]"; + return getClass().getName() + "[site=" + site + ",number=" + number + "]"; } }