The Artima Developer Community
Sponsored Link

Java Buzz Forum
New “Magic Constant” Inspection

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
s m

Posts: 2034
Nickname: sashika
Registered: Jul, 2005

sasha maximova works for JetBrains
New “Magic Constant” Inspection Posted: Feb 17, 2012 4:02 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by s m.
Original Post: New “Magic Constant” Inspection
Feed Title: IntelliJ IDEA Blog
Feed URL: http://blogs.jetbrains.com/idea/feed/
Feed Description: News, tips&tricks, how-to's and other issues related to IntelliJ IDEA
Latest Java Buzz Posts
Latest Java Buzz Posts by s m
Latest Posts From IntelliJ IDEA Blog

Advertisement
Have you ever cursed an API which uses magic integer constants instead of the proper enumeration? What should I pass as the titleJustification parameter here? 0 or 1? Can I pass “42″ for the titlePosition parameter? Even Javadoc won’t know. Actually, you must use one of the constants in the TitledBorder class to make the code correct: I call [...]

Read: New “Magic Constant” Inspection

Topic: What is a Determinant? Previous Topic   Next Topic Topic: fail-safe vs fail-fast Iterator in Java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use