mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +00:00
223d958663
Reasons for replacement: * The old method was untested * The Scanner class is supposedly slower than using Streams directly (which the new methods do) * If possible, it's generally better not to duplicate solutions - using the Scanner works around the infrastructure this changeset series built (i.e. using Streams). In the edge cases, getFileContents: * throws NoSuchElementException for empty files. The new behavior is to return the empty string. Since getFileContents was always wrapped by `new JSONObject` or similar, and we throw when the file is empty, the behavior should stay the same. * throws NoSuchFileException for missing files. This is the same as the new behavior. MozReview-Commit-ID: 6ESPss29emU --HG-- extra : rebase_source : 24af07bddd585b857ebd8eb4eff4c7ac4898ba37 |
||
---|---|---|
.. | ||
android | ||
locales |