aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes finally null variables Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "finally null variables" Watch "finally null variables" New topic
Author

finally null variables

Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
I've recently seen some JSP pages and JS files that always have try-finally and always set any variables allocated to null. Sometimes the arguments, too.

Is this necessary? A good idea? Totally bonkers? (I'm leaning towards door #3)


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56202
    
  13

I'd lean towards "obsessive compulsive".


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: finally null variables
 
Similar Threads
Question about finally and close()
OC4J RELEASE 3 bug
What is the right use of finally block ? + Performance of Program.
Oracle -- Closing Statements
When to Initialize Objects to null or new