https://issues.apache.org/bugzilla/show_bug.cgi?id=51196
--- Comment #7 from Yegor Kozlov <[email protected]> 2011-05-18 13:27:11 UTC --- Can your code return reasonable defaults, say, all zeros would mean that these values are not set? To me it looks better than using the Double type in interfaces. BTW, there is a bug in your code: you need to check if the Double argument is null. For example, passing a null to the code below will cause NPE: @Override public void setMaximum(Double max) { CTScaling scaling = getCTScaling(); if (scaling.isSetMax()) { scaling.getMax().setVal(max.doubleValue()); } else { scaling.addNewMax().setVal(max.doubleValue()); } } Yegor -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
