X Tutup
Skip to content

Cleanup of unnecessary casts#257

Closed
pibizza wants to merge 2 commits intobiojava:masterfrom
pibizza:master
Closed

Cleanup of unnecessary casts#257
pibizza wants to merge 2 commits intobiojava:masterfrom
pibizza:master

Conversation

@pibizza
Copy link
Copy Markdown

@pibizza pibizza commented Feb 28, 2015

I have tried to remove lots of unnecessary casts from the code.

@pwrose
Copy link
Copy Markdown
Member

pwrose commented Mar 1, 2015

Hi Paolo,

At first sight it might seem like a good idea to change for example:
public Object clone() to public Atom clone() to avoid the casts,

however, there is a catch!

A class that implements the Cloneable interface must to overwrite public Object clone();

-Peter

From: Paolo Bizzarri <notifications@github.commailto:notifications@github.com>
Reply-To: biojava/biojava <reply@reply.github.commailto:reply@reply.github.com>
Date: Saturday, February 28, 2015 at 12:54 PM
To: biojava/biojava <biojava@noreply.github.commailto:biojava@noreply.github.com>
Subject: [biojava] Cleanup of unnecessary casts (#257)
Resent-From: Peter Rose <pwrose@ucsd.edumailto:pwrose@ucsd.edu>

I have tried to remove lots of unnecessary casts from the code.


You can view, comment on, or merge this pull request online at:

#257

Commit Summary

  • Merge pull request added .gitignore #1 from biojava/master
  • Code cleanup. Removed lots of unnecessary casts.

File Changes

Patch Links:


Reply to this email directly or view it on GitHubhttps://github.com//pull/257.

@pibizza
Copy link
Copy Markdown
Author

pibizza commented Mar 1, 2015

Oh, I see. My mistake. You never stop learning something new. Thanks.

@pibizza pibizza closed this Mar 1, 2015
@phidias51
Copy link
Copy Markdown

The other problem is you won't know you've broken anything until you try to
execute the statement.

Mark
On Feb 28, 2015 10:56 PM, "Paolo Bizzarri" notifications@github.com wrote:

Oh, I see. My mistake. You never stop learning something new. Thanks.


Reply to this email directly or view it on GitHub
#257 (comment).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup