Skip to content

Commit 96ff8bd

Browse files
committed
Minor code edits
1 parent 0e2f14c commit 96ff8bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/upokecenter/cbor/CBORDateConverter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ public java.util.Date FromCBORObject(CBORObject obj) {
198198
*/
199199
public boolean TryGetDateTimeFields(CBORObject obj, EInteger[] year, int[]
200200
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
201204
if (year == null) {
202205
throw new NullPointerException("year");
203206
}

0 commit comments

Comments
 (0)