forked from google/libphonenumber
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring MetadataManager (google#2732)
* Added new classes with behavior from MetadataManager & MetadataSource * Replaced MetadataManager usages with new classes * New PrefixDataIOHandler which packs data into a jar * Added mockito-core jar to lib folder * Added mockito-all jar to lib folder and updated tests to not use junit4 annotations * Fixed prefix generation entry points * Specific exception for missing metadata cases * Small change in checking missing metadata cases
- Loading branch information
1 parent
7b69a59
commit 5a17acd
Showing
52 changed files
with
1,941 additions
and
734 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
233 changes: 0 additions & 233 deletions
233
java/libphonenumber/src/com/google/i18n/phonenumbers/MetadataManager.java
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
java/libphonenumber/src/com/google/i18n/phonenumbers/MissingMetadataException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.google.i18n.phonenumbers; | ||
|
||
/** Exception class for cases when expected metadata cannot be found. */ | ||
public final class MissingMetadataException extends IllegalStateException { | ||
|
||
public MissingMetadataException(String message) { | ||
super(message); | ||
} | ||
} |
Oops, something went wrong.