Author: jleroux
Date: Sun Apr 18 08:06:49 2010
New Revision: 935313
URL:
http://svn.apache.org/viewvc?rev=935313&view=revLog:
A patch from Bob Morley "Resolve java warnings exposed in Eclipse (Marketing part of OFBIZ-3100)"
https://issues.apache.org/jira/browse/OFBIZ-3587 - OFBIZ-3587
Very minor change to VCard.java - now using unknown generic in iterator (Iterator<?>).
Modified:
ofbiz/trunk/applications/marketing/src/org/ofbiz/sfa/vcard/VCard.java
Modified: ofbiz/trunk/applications/marketing/src/org/ofbiz/sfa/vcard/VCard.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/src/org/ofbiz/sfa/vcard/VCard.java?rev=935313&r1=935312&r2=935313&view=diff==============================================================================
--- ofbiz/trunk/applications/marketing/src/org/ofbiz/sfa/vcard/VCard.java (original)
+++ ofbiz/trunk/applications/marketing/src/org/ofbiz/sfa/vcard/VCard.java Sun Apr 18 08:06:49 2010
@@ -96,7 +96,7 @@ public class VCard {
serviceCtx.put("firstName", pid.getFirstname());
serviceCtx.put("lastName", pid.getLastname());
}
- for (Iterator iter = contact.getAddresses(); iter.hasNext();) {
+ for (Iterator<?> iter = contact.getAddresses(); iter.hasNext();) {
Address address = (AddressImpl) iter.next();
if (contact.isPreferredAddress(address)) {
workAddress = address;
@@ -137,7 +137,7 @@ public class VCard {
if (!isGroup) {
Communications communications = contact.getCommunications();
if (UtilValidate.isNotEmpty(communications)) {
- for (Iterator iter = communications.getEmailAddresses(); iter.hasNext();) {
+ for (Iterator<?> iter = communications.getEmailAddresses(); iter.hasNext();) {
EmailAddress emailAddress = (EmailAddressImpl) iter.next();
if (communications.isPreferredEmailAddress(emailAddress)) {
email = emailAddress.getAddress();
@@ -150,7 +150,7 @@ public class VCard {
if (UtilValidate.isNotEmpty(email)) {
serviceCtx.put("emailAddress", email);
}
- for (Iterator iter = communications.getPhoneNumbers(); iter.hasNext();) {
+ for (Iterator<?> iter = communications.getPhoneNumbers(); iter.hasNext();) {
PhoneNumber phoneNumber = (PhoneNumberImpl) iter.next();
if (phoneNumber.isPreferred()) {
phone = phoneNumber.getNumber();