Skip to content

MsgpackEmitter.emitInteger() has useless bounds checks #47

Closed

Description

@puredanger

MsgpackEmitter.emitInteger() has bounds checks to handle longs outside of long range, which is impossible:

if ((i > Long.MAX_VALUE) || (i < Long.MIN_VALUE))
  ...

These conditions are always false and should be removed in both emitInteger() methods.

Activity

  1. added theissue type on Feb 24, 2026
  2. JarrodCTaylor commented on Feb 27, 2026

    @JarrodCTaylor
    Contributor

    Closed by #49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions