huixiangufl / google-diff-match-patch

Automatically exported from code.google.com/p/google-diff-match-patch
Apache License 2.0
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 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