-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suppress warnings in which Number constructor is used intendedly
Instantiating a new Long, Integer, Short or Byte object from a primitive long, integer, short or byte argument is deprecated. It is recommended that we use the more efficient static method valueOf() (introduced in Java 5) instead, which caches objects for values between -128 and 127 inclusive. However in JPF, there are few cases where the use of Number constructor is intentional (So to bypass the caching). This commit suppress warnings from appearing in such cases. Issue: #47
- Loading branch information
Showing
2 changed files
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters