this.getLogger().trace(MessageFormat.format("contact={0} - CALLED!", contact)); //NOI18N
// Is it null?
- if (contact == null) {
+ if (null == contact) {
// Abort here
throw new NullPointerException("contact is null"); //NOI18N
}
this.getLogger().trace(MessageFormat.format("contact={0} - CALLED!", contact)); //NOI18N
// Is it null?
- if (contact == null) {
+ if (null == contact) {
// Abort here
throw new NullPointerException("contact is null"); //NOI18N
}
String companyName = contact.getCompanyName();
// If it is empty/null, then assume private contact
- if ((companyName == null) || (companyName.isEmpty())) {
+ if ((null == companyName) || (companyName.isEmpty())) {
// Now put all together: gender, surname, family name
// @todo Use mask
this.outputMessage(MessageFormat.format("Anrede, Vorname, Name: {0} {1} {2}", gender, contact.getFirstName(), contact.getFamilyName()));
this.getLogger().trace(MessageFormat.format("contact={0} - CALLED!", contact)); //NOI18N
// Is it null?
- if (contact == null) {
+ if (null == contact) {
// Abort here
throw new NullPointerException("contact is null"); //NOI18N
}
this.getLogger().trace(MessageFormat.format("contact={0} - CALLED!", contact)); //NOI18N
// Is it null?
- if (contact == null) {
+ if (null == contact) {
// Abort here
throw new NullPointerException("contact is null"); //NOI18N
}
this.getLogger().trace(MessageFormat.format("contact={0} - CALLED!", contact)); //NOI18N
// Is it null?
- if (contact == null) {
+ if (null == contact) {
// Abort here
throw new NullPointerException("contact is null"); //NOI18N
}
this.getLogger().trace(MessageFormat.format("contact={0} - CALLED!", contact)); //NOI18N
// Is it null?
- if (contact == null) {
+ if (null == contact) {
// Abort here
throw new NullPointerException("contact is null"); //NOI18N
}
this.getLogger().trace(MessageFormat.format("validChars={0},message={1} - CALLED!", Arrays.toString(validChars), message)); //NOI18N
// The validChars must not null be null and filled with at least one char
- if (validChars == null) {
+ if (null == validChars) {
// Is null
throw new NullPointerException("validChars is null"); //NOI18N
} else if (validChars.length == 0) {
String input = null;
// Check if it is to short or to long
- while (((input == null) || ((input.length() < minLength) && (!allowEmpty))) || ((input.length() > 0) && (input.length() < minLength) && (allowEmpty)) || ((input instanceof String) && (input.length() > maxLength))) {
+ while (((null == input) || ((input.length() < minLength) && (!allowEmpty))) || ((input.length() > 0) && (input.length() < minLength) && (allowEmpty)) || ((input instanceof String) && (input.length() > maxLength))) {
// Output message
System.out.print(message);
this.getLogger().trace(MessageFormat.format("contact={0} CALLED!", contact)); //NOI18N
// Contact must not be null
- if (contact == null) {
+ if (null == contact) {
// Abort here
throw new NullPointerException("contact is null"); //NOI18N
}