Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion guava/src/com/google/common/primitives/UnsignedInteger.java
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ public UnsignedInteger mod(UnsignedInteger val) {

/** Returns the value of this {@code UnsignedInteger} as a {@code long}. */
@Override
@SuppressWarnings("value:cast.unsafe") // Unknown long to PolyValue long is ok
@SuppressWarnings({
"value:cast.unsafe",
"cast.incomparable"
}) // Unknown long to PolyValue long is ok
public @PolyValue long longValue(@PolyValue UnsignedInteger this) {
return (@PolyValue long) toLong(value);
}
Expand Down