Small style stuff
[zxing.git] / core / src / com / google / zxing / client / result / AddressBookDoCoMoResultParser.java
index e73fa21..86fe8b9 100644 (file)
@@ -47,9 +47,9 @@ final class AddressBookDoCoMoResultParser extends AbstractDoCoMoResultParser {
     String name = parseName(rawName[0]);
     String pronunciation = matchSingleDoCoMoPrefixedField("SOUND:", rawText, true);
     String[] phoneNumbers = matchDoCoMoPrefixedField("TEL:", rawText, true);
-    String email = matchSingleDoCoMoPrefixedField("EMAIL:", rawText, true);
+    String[] emails = matchDoCoMoPrefixedField("EMAIL:", rawText, true);
     String note = matchSingleDoCoMoPrefixedField("NOTE:", rawText, false);
-    String address = matchSingleDoCoMoPrefixedField("ADR:", rawText, true);
+    String[] addresses = matchDoCoMoPrefixedField("ADR:", rawText, true);
     String birthday = matchSingleDoCoMoPrefixedField("BDAY:", rawText, true);
     if (birthday != null && !isStringOfDigits(birthday, 8)) {
       // No reason to throw out the whole card because the birthday is formatted wrong.
@@ -64,9 +64,9 @@ final class AddressBookDoCoMoResultParser extends AbstractDoCoMoResultParser {
     return new AddressBookParsedResult(maybeWrap(name),
                                        pronunciation,
                                        phoneNumbers,
-                                       maybeWrap(email),
+                                       emails,
                                        note,
-                                       address,
+                                       addresses,
                                        org,
                                        birthday,
                                        null,