From f65a12a2cdac627655d3baa817219766d4caf0a6 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sun, 6 Mar 2016 18:28:20 +0100 Subject: [PATCH] Explicitly called default constructor (didn't help) + improved documentation --- .../phonenumbers/cellphone/CellphoneNumber.java | 8 ++++++-- .../mxchange/jphone/phonenumbers/fax/FaxNumber.java | 12 ++++++++---- .../jphone/phonenumbers/landline/LandLineNumber.java | 12 ++++++++---- .../phonenumbers/smsprovider/CellphoneProvider.java | 10 +++++++--- 4 files changed, 29 insertions(+), 13 deletions(-) diff --git a/src/org/mxchange/jphone/phonenumbers/cellphone/CellphoneNumber.java b/src/org/mxchange/jphone/phonenumbers/cellphone/CellphoneNumber.java index 5ef1700..d4a191e 100644 --- a/src/org/mxchange/jphone/phonenumbers/cellphone/CellphoneNumber.java +++ b/src/org/mxchange/jphone/phonenumbers/cellphone/CellphoneNumber.java @@ -79,13 +79,17 @@ public class CellphoneNumber implements DialableCellphoneNumber, Comparable - * @param cellphoneProvider Cellphone carrier instance + * @param cellphoneProvider Cellphone provider instance * @param cellphoneNumber Cellphone number * @param phoneEntryCreated When this entry has been created */ public CellphoneNumber (final SmsProvider cellphoneProvider, final Long cellphoneNumber, final Calendar phoneEntryCreated) { + // Call default constructor + this(); + + // Set all values this.cellphoneProvider = cellphoneProvider; this.phoneNumber = cellphoneNumber; this.phoneEntryCreated = phoneEntryCreated; diff --git a/src/org/mxchange/jphone/phonenumbers/fax/FaxNumber.java b/src/org/mxchange/jphone/phonenumbers/fax/FaxNumber.java index f7fc667..9fd4b39 100644 --- a/src/org/mxchange/jphone/phonenumbers/fax/FaxNumber.java +++ b/src/org/mxchange/jphone/phonenumbers/fax/FaxNumber.java @@ -85,14 +85,18 @@ public class FaxNumber implements DialableFaxNumber, Comparable - * @param faxCountry Country instance - * @param faxAreaCode Area code (without leading zeros) - * @param faxNumber Fax number (without area code and leading zero) + * @param faxCountry Country instance + * @param faxAreaCode Area code (without leading zeros) + * @param faxNumber Fax number (without area code and leading zero) * @param phoneEntryCreated When this entry has been created */ public FaxNumber (final Country faxCountry, final Integer faxAreaCode, final Long faxNumber, final Calendar phoneEntryCreated) { + // Call default constructor + this(); + + // Set all values this.faxCountry = faxCountry; this.faxAreaCode = faxAreaCode; this.phoneNumber = faxNumber; diff --git a/src/org/mxchange/jphone/phonenumbers/landline/LandLineNumber.java b/src/org/mxchange/jphone/phonenumbers/landline/LandLineNumber.java index 7196401..d9f7343 100644 --- a/src/org/mxchange/jphone/phonenumbers/landline/LandLineNumber.java +++ b/src/org/mxchange/jphone/phonenumbers/landline/LandLineNumber.java @@ -85,14 +85,18 @@ public class LandLineNumber implements DialableLandLineNumber, Comparable - * @param phoneCountry Country instance - * @param phoneAreaCode Phone area code - * @param phoneNumber Phone number + * @param phoneCountry Country instance + * @param phoneAreaCode Phone area code + * @param phoneNumber Phone number * @param phoneEntryCreated When this entry has been created */ public LandLineNumber (final Country phoneCountry, final Integer phoneAreaCode, final Long phoneNumber, final Calendar phoneEntryCreated) { + // Call default constructor + this(); + + // Set all values this.phoneCountry = phoneCountry; this.phoneAreaCode = phoneAreaCode; this.phoneNumber = phoneNumber; diff --git a/src/org/mxchange/jphone/phonenumbers/smsprovider/CellphoneProvider.java b/src/org/mxchange/jphone/phonenumbers/smsprovider/CellphoneProvider.java index 3395af4..6703989 100644 --- a/src/org/mxchange/jphone/phonenumbers/smsprovider/CellphoneProvider.java +++ b/src/org/mxchange/jphone/phonenumbers/smsprovider/CellphoneProvider.java @@ -92,12 +92,16 @@ public class CellphoneProvider implements SmsProvider, Comparable { /** * Constructor with all required data *

- * @param providerDialPrefix Dial prefix - * @param providerName Name - * @param providerCountry Country + * @param providerDialPrefix Dial prefix + * @param providerName Name + * @param providerCountry Country * @param providerEntryCreated When this entry has been created */ public CellphoneProvider (final Long providerDialPrefix, final String providerName, final Country providerCountry, final Calendar providerEntryCreated) { + // Call default constructor + this(); + + // Set all values this.providerDialPrefix = providerDialPrefix; this.providerName = providerName; this.providerCountry = providerCountry; -- 2.39.5