GerHobbelt / google-diff-match-patch

Diff, Match and Patch Library (original at http://google.com/p/google-diff-match-patch)
Apache License 2.0
201 stars 58 forks source link

Java: patch_fromText() returns List<>, but patch_apply() takes LinkedList<> #78

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Title says it all. Because of this, fromText() can never be used for anything. 
The solution is very simple. On lines 2216 and 2218, replace List with 
LinkedList.

<Needless ramble> This is a really major (if easily-fixed) bug. How could it be 
in the code? Is this what all Google code is like? No wonder my Galaxy Nexus 
stopped charging.

Original issue reported on code.google.com by adubin...@almson.net on 8 Dec 2012 at 2:19