mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8224175: Fix inconsistencies in @jls and @jvms tags
Reviewed-by: jjg, rfield
This commit is contained in:
parent
37572de2a1
commit
6930e80c31
29 changed files with 108 additions and 109 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -356,7 +356,7 @@ public final class Byte extends Number implements Comparable<Byte> {
|
|||
/**
|
||||
* Returns the value of this {@code Byte} as a {@code short} after
|
||||
* a widening primitive conversion.
|
||||
* @jls 5.1.2 Widening Primitive Conversions
|
||||
* @jls 5.1.2 Widening Primitive Conversion
|
||||
*/
|
||||
public short shortValue() {
|
||||
return (short)value;
|
||||
|
@ -365,7 +365,7 @@ public final class Byte extends Number implements Comparable<Byte> {
|
|||
/**
|
||||
* Returns the value of this {@code Byte} as an {@code int} after
|
||||
* a widening primitive conversion.
|
||||
* @jls 5.1.2 Widening Primitive Conversions
|
||||
* @jls 5.1.2 Widening Primitive Conversion
|
||||
*/
|
||||
public int intValue() {
|
||||
return (int)value;
|
||||
|
@ -374,7 +374,7 @@ public final class Byte extends Number implements Comparable<Byte> {
|
|||
/**
|
||||
* Returns the value of this {@code Byte} as a {@code long} after
|
||||
* a widening primitive conversion.
|
||||
* @jls 5.1.2 Widening Primitive Conversions
|
||||
* @jls 5.1.2 Widening Primitive Conversion
|
||||
*/
|
||||
public long longValue() {
|
||||
return (long)value;
|
||||
|
@ -383,7 +383,7 @@ public final class Byte extends Number implements Comparable<Byte> {
|
|||
/**
|
||||
* Returns the value of this {@code Byte} as a {@code float} after
|
||||
* a widening primitive conversion.
|
||||
* @jls 5.1.2 Widening Primitive Conversions
|
||||
* @jls 5.1.2 Widening Primitive Conversion
|
||||
*/
|
||||
public float floatValue() {
|
||||
return (float)value;
|
||||
|
@ -392,7 +392,7 @@ public final class Byte extends Number implements Comparable<Byte> {
|
|||
/**
|
||||
* Returns the value of this {@code Byte} as a {@code double}
|
||||
* after a widening primitive conversion.
|
||||
* @jls 5.1.2 Widening Primitive Conversions
|
||||
* @jls 5.1.2 Widening Primitive Conversion
|
||||
*/
|
||||
public double doubleValue() {
|
||||
return (double)value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue