Re: [java-gnome-hackers] null constant?
Brought to you by:
afcowie
From: Guillaume M. <res...@gm...> - 2010-09-18 10:19:10
|
> We can change the code to initialize that constant to Java null if it's > not found. Yes we can. > Is that acceptable? I'm not sure. Maybe this is a special case, but > *nowhere* else in java-gnome is one of the constant fields null (!) - > they're all initialized to Constant Objects. I don't think that is really acceptable. That means that developers will have to check if the constant is "!= null" before using it. And I think that it is not how we should use a constant. I guess it is a special case but what do we with it? Ignore it? Try to deal with it? -- Guillaume Mazoyer - http://www.respawner.fr/ |