mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-30 13:12:25 -05:00
Fix bug where replaceAll result was being discarded.
Fix javadoc.
This commit is contained in:
parent
df44a1f89b
commit
f5421f32b8
@ -327,8 +327,8 @@ public class Address
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Unpacks an address list previously packed with packAddressList()
|
* Unpacks an address list previously packed with packAddressList()
|
||||||
* @param list
|
* @param addressList Packed address list.
|
||||||
* @return
|
* @return Unpacked list.
|
||||||
*/
|
*/
|
||||||
public static Address[] unpack(String addressList)
|
public static Address[] unpack(String addressList)
|
||||||
{
|
{
|
||||||
@ -369,10 +369,10 @@ public class Address
|
|||||||
/**
|
/**
|
||||||
* Packs an address list into a String that is very quick to read
|
* Packs an address list into a String that is very quick to read
|
||||||
* and parse. Packed lists can be unpacked with unpackAddressList()
|
* and parse. Packed lists can be unpacked with unpackAddressList()
|
||||||
* The packed list is a "\u0000," seperated list of:
|
* The packed list is a "\u0000," separated list of:
|
||||||
* address\u0000;personal
|
* address\u0000;personal
|
||||||
* @param list
|
* @param addresses Array of addresses to pack.
|
||||||
* @return
|
* @return Packed addresses.
|
||||||
*/
|
*/
|
||||||
public static String pack(Address[] addresses)
|
public static String pack(Address[] addresses)
|
||||||
{
|
{
|
||||||
@ -390,7 +390,7 @@ public class Address
|
|||||||
{
|
{
|
||||||
sb.append(";\u0000");
|
sb.append(";\u0000");
|
||||||
// Escape quotes in the address part on the way in
|
// Escape quotes in the address part on the way in
|
||||||
personal.replaceAll("\"","\\\"");
|
personal = personal.replaceAll("\"","\\\"");
|
||||||
sb.append(personal);
|
sb.append(personal);
|
||||||
}
|
}
|
||||||
if (i < count - 1)
|
if (i < count - 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user