Browse Source

Stops PhoneNumber from implementing Serializable and make it non-final.

pull/567/head
Shaopeng Jia 16 years ago
committed by Mihaela Rosca
parent
commit
d01a8c3f67
2 changed files with 3 additions and 6 deletions
  1. +2
    -2
      java/src/com/google/i18n/phonenumbers/Phonemetadata.java
  2. +1
    -4
      java/src/com/google/i18n/phonenumbers/Phonenumber.java

+ 2
- 2
java/src/com/google/i18n/phonenumbers/Phonemetadata.java View File

@ -172,7 +172,7 @@ public final class Phonemetadata {
objectOutput.writeBoolean(hasExampleNumber);
if (hasExampleNumber) {
objectOutput.writeUTF(exampleNumber_);
}
}
}
public void readExternal(ObjectInput objectInput) throws IOException, ClassNotFoundException {
@ -503,7 +503,7 @@ public final class Phonemetadata {
if (hasNationalPrefixTransformRule) {
objectOutput.writeUTF(nationalPrefixTransformRule_);
}
objectOutput.writeBoolean(sameMobileAndFixedLinePattern_);
int numberFormatSize = getNumberFormatCount();


+ 1
- 4
java/src/com/google/i18n/phonenumbers/Phonenumber.java View File

@ -22,12 +22,9 @@
package com.google.i18n.phonenumbers;
import java.io.Serializable;
public final class Phonenumber {
private Phonenumber() {}
public static final class PhoneNumber implements Serializable {
private static final long serialVersionUID = 1;
public static class PhoneNumber {
public enum CountryCodeSource {
FROM_NUMBER_WITH_PLUS_SIGN,
FROM_NUMBER_WITH_IDD,


Loading…
Cancel
Save