Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java warning in diff_compute #22

Closed
GoogleCodeExporter opened this issue Apr 18, 2016 · 1 comment
Closed

Java warning in diff_compute #22

GoogleCodeExporter opened this issue Apr 18, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Problem:
Unchecked cast from Object to ArrayList<String> in diff_match_patch.java on
line 229 in function diff_compute.

What is the expected output? What do you see instead?
No warnings should be produced

What version of the product are you using?
diff_match_patch_20090615.zip

Solution:
Create a new class diff_linesToChars_result with public the following
signature:

public String chars1;
public String chars2;
public List<String> lineArray;

See attachement

Original issue reported on code.google.com by Sven.Lil...@gmail.com on 17 Jul 2009 at 7:12

Attachments:

@GoogleCodeExporter
Copy link
Author

I was afraid it would come to this, seems like Java requires a lot of pointless 
hoop-
jumping for something so simple.  But I guess I'd better add it (bloated even 
further 
with an equals method so that the unit tests will function).  It is in the next 
release 
(Thursday?).

Original comment by neil.fra...@gmail.com on 19 Aug 2009 at 8:32

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant