We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e2f14c commit 96ff8bdCopy full SHA for 96ff8bd
src/main/java/com/upokecenter/cbor/CBORDateConverter.java
@@ -198,6 +198,9 @@ public java.util.Date FromCBORObject(CBORObject obj) {
198
*/
199
public boolean TryGetDateTimeFields(CBORObject obj, EInteger[] year, int[]
200
lesserFields) {
201
+ // TODO: In next major version, return false instead of throwing an
202
+ // exception if the arguments are invalid, to conform to convention
203
+ // with Try* methods in DotNet
204
if (year == null) {
205
throw new NullPointerException("year");
206
}
0 commit comments