[gradebook2-dev] GRBK-485-1 (issue4223043)
Jim Eng
jimeng at umich.edu
Mon Mar 7 15:31:12 PST 2011
Michael points out an incosistency in the way the config setting is checked.
If it's false or not set, the code rechecks the setting whenever the method
is called. If it' true, we never check again. Basically the method is
expressing disbelief that anyone could be so stupid as to choose a setting
other than true. :-)
Maybe the method should be less biased. ... is there any circumstance under
which a config setting can change? If not, the initial value could be null,
in which case we could check the config setting. If it's true, we could set
the value to true and never check again. If it's not true (false or not set)
we could set it to false and never check again. Would that work?
Good catch, Mike.
Jim
Sent via DROID on Verizon Wireless
-----Original message-----
From: mikewenk at gmail.com
To: jpgorrono at gmail.com, tamsler at gmail.com
Cc: mwenk at ucdavis.edu, jimeng at umich.edu,
gradebook2-dev at collab.sakaiproject.org, reply at codereview.appspotmail.com
Sent: Mon, Mar 7, 2011 22:19:47 GMT+00:00
Subject: Re: GRBK-485-1 (issue4223043)
Looks fine, one comment about consistency.
+1 to merge.
http://codereview.appspot.com/4223043/diff/1/client/src/java/org/sakaiproject
/gradebook/gwt/client/gxt/view/panel/MultiGradeContentPanel.java
File
client/src/java/org/sakaiproject/gradebook/gwt/client/gxt/view/panel/MultiGra
deContentPanel.java
(right):
http://codereview.appspot.com/4223043/diff/1/client/src/java/org/sakaiproject
/gradebook/gwt/client/gxt/view/panel/MultiGradeContentPanel.java#newcode1572
client/src/java/org/sakaiproject/gradebook/gwt/client/gxt/view/panel/MultiGra
deContentPanel.java:1572:
*/
Does this method have to do things this way? It seems like it will
always do the below if its false, but if it ever gets to be true it will
stop checking the registry. Either it should be consistent or the
constructor/init method should set it once.
http://codereview.appspot.com/4223043/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/gradebook2-dev/attachments/20110307/ecbed0f0/attachment.html
More information about the gradebook2-dev
mailing list