Skip to content

tryParseUnsigned* #1957

Open
Open
@cpovirk

Description

@cpovirk

Another discovery of our @CheckReturnValue additions is that people (~8 in Google-internal code) write code like this:

try {
  UnsignedLongs.parseUnsignedLong(foo);
  return true;
} catch (NumberFormatException e) {
  return false;
}

When parseUnsignedLong gets its @CheckReturnValue annotation, this requires a suppression.

If we provided tryParseUnsignedLong and friends, they could use that instead.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions