Prevent mistypings to the String class

The conversion of objects to strings (or stringification) can cause problems in Java programming unless you remember that string representations are rarely used in solid object-oriented applications. In this article, systems analyst and programmer Fernando Ribeiro builds on Eric Allen’s bug pattern concept and explains how mis-stringification can be a bug pattern; he discusses the diagnostics of this elusive pitfall and expounds on the benefits of type safety.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.