Skip to content
Open
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
36 changes: 18 additions & 18 deletions src/java.base/share/classes/java/lang/reflect/Field.java
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ public String toGenericString(@GuardSatisfied Field this) {
@SideEffectFree
@CallerSensitive
@ForceInline // to ensure Reflection.getCallerClass optimization
public @Nullable Object get(@GuardSatisfied Field this, @GuardSatisfied Object obj)
public @Nullable Object get(@GuardSatisfied Field this, @GuardSatisfied @Nullable Object obj)
throws IllegalArgumentException, IllegalAccessException
{
if (!override) {
Expand Down Expand Up @@ -480,7 +480,7 @@ public String toGenericString(@GuardSatisfied Field this) {
@Pure
@CallerSensitive
@ForceInline // to ensure Reflection.getCallerClass optimization
public boolean getBoolean(@GuardSatisfied Field this, @GuardSatisfied Object obj)
public boolean getBoolean(@GuardSatisfied Field this, @GuardSatisfied @Nullable Object obj)
throws IllegalArgumentException, IllegalAccessException
{
if (!override) {
Expand Down Expand Up @@ -515,7 +515,7 @@ public boolean getBoolean(@GuardSatisfied Field this, @GuardSatisfied Object obj
@Pure
@CallerSensitive
@ForceInline // to ensure Reflection.getCallerClass optimization
public byte getByte(@GuardSatisfied Field this, @GuardSatisfied Object obj)
public byte getByte(@GuardSatisfied Field this, @GuardSatisfied @Nullable Object obj)
throws IllegalArgumentException, IllegalAccessException
{
if (!override) {
Expand Down Expand Up @@ -552,7 +552,7 @@ public byte getByte(@GuardSatisfied Field this, @GuardSatisfied Object obj)
@Pure
@CallerSensitive
@ForceInline // to ensure Reflection.getCallerClass optimization
public char getChar(@GuardSatisfied Field this, @GuardSatisfied Object obj)
public char getChar(@GuardSatisfied Field this, @GuardSatisfied @Nullable Object obj)
throws IllegalArgumentException, IllegalAccessException
{
if (!override) {
Expand Down Expand Up @@ -589,7 +589,7 @@ public char getChar(@GuardSatisfied Field this, @GuardSatisfied Object obj)
@Pure
@CallerSensitive
@ForceInline // to ensure Reflection.getCallerClass optimization
public short getShort(@GuardSatisfied Field this, @GuardSatisfied Object obj)
public short getShort(@GuardSatisfied Field this, @GuardSatisfied @Nullable Object obj)
throws IllegalArgumentException, IllegalAccessException
{
if (!override) {
Expand Down Expand Up @@ -626,7 +626,7 @@ public short getShort(@GuardSatisfied Field this, @GuardSatisfied Object obj)
@Pure
@CallerSensitive
@ForceInline // to ensure Reflection.getCallerClass optimization
public int getInt(@GuardSatisfied Field this, @GuardSatisfied Object obj)
public int getInt(@GuardSatisfied Field this, @GuardSatisfied @Nullable Object obj)
throws IllegalArgumentException, IllegalAccessException
{
if (!override) {
Expand Down Expand Up @@ -663,7 +663,7 @@ public int getInt(@GuardSatisfied Field this, @GuardSatisfied Object obj)
@Pure
@CallerSensitive
@ForceInline // to ensure Reflection.getCallerClass optimization
public long getLong(@GuardSatisfied Field this, @GuardSatisfied Object obj)
public long getLong(@GuardSatisfied Field this, @GuardSatisfied @Nullable Object obj)
throws IllegalArgumentException, IllegalAccessException
{
if (!override) {
Expand Down Expand Up @@ -700,7 +700,7 @@ public long getLong(@GuardSatisfied Field this, @GuardSatisfied Object obj)
@Pure
@CallerSensitive
@ForceInline // to ensure Reflection.getCallerClass optimization
public float getFloat(@GuardSatisfied Field this, @GuardSatisfied Object obj)
public float getFloat(@GuardSatisfied Field this, @GuardSatisfied @Nullable Object obj)
throws IllegalArgumentException, IllegalAccessException
{
if (!override) {
Expand Down Expand Up @@ -737,7 +737,7 @@ public float getFloat(@GuardSatisfied Field this, @GuardSatisfied Object obj)
@Pure
@CallerSensitive
@ForceInline // to ensure Reflection.getCallerClass optimization
public double getDouble(@GuardSatisfied Field this, @GuardSatisfied Object obj)
public double getDouble(@GuardSatisfied Field this, @GuardSatisfied @Nullable Object obj)
throws IllegalArgumentException, IllegalAccessException
{
if (!override) {
Expand Down Expand Up @@ -827,7 +827,7 @@ public double getDouble(@GuardSatisfied Field this, @GuardSatisfied Object obj)
*/
@CallerSensitive
@ForceInline // to ensure Reflection.getCallerClass optimization
public void set(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitialization Object obj, @GuardSatisfied @Interned Object value)
public void set(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitialization @Nullable Object obj, @GuardSatisfied @Interned Object value)
throws IllegalArgumentException, IllegalAccessException
{
if (!override) {
Expand Down Expand Up @@ -864,7 +864,7 @@ public void set(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitializati
*/
@CallerSensitive
@ForceInline // to ensure Reflection.getCallerClass optimization
public void setBoolean(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitialization Object obj, boolean z)
public void setBoolean(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitialization @Nullable Object obj, boolean z)
throws IllegalArgumentException, IllegalAccessException
{
if (!override) {
Expand Down Expand Up @@ -901,7 +901,7 @@ public void setBoolean(@GuardSatisfied Field this, @GuardSatisfied @UnknownIniti
*/
@CallerSensitive
@ForceInline // to ensure Reflection.getCallerClass optimization
public void setByte(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitialization Object obj, byte b)
public void setByte(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitialization @Nullable Object obj, byte b)
throws IllegalArgumentException, IllegalAccessException
{
if (!override) {
Expand Down Expand Up @@ -938,7 +938,7 @@ public void setByte(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitiali
*/
@CallerSensitive
@ForceInline // to ensure Reflection.getCallerClass optimization
public void setChar(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitialization Object obj, char c)
public void setChar(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitialization @Nullable Object obj, char c)
throws IllegalArgumentException, IllegalAccessException
{
if (!override) {
Expand Down Expand Up @@ -975,7 +975,7 @@ public void setChar(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitiali
*/
@CallerSensitive
@ForceInline // to ensure Reflection.getCallerClass optimization
public void setShort(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitialization Object obj, short s)
public void setShort(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitialization @Nullable Object obj, short s)
throws IllegalArgumentException, IllegalAccessException
{
if (!override) {
Expand Down Expand Up @@ -1012,7 +1012,7 @@ public void setShort(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitial
*/
@CallerSensitive
@ForceInline // to ensure Reflection.getCallerClass optimization
public void setInt(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitialization Object obj, int i)
public void setInt(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitialization @Nullable Object obj, int i)
throws IllegalArgumentException, IllegalAccessException
{
if (!override) {
Expand Down Expand Up @@ -1049,7 +1049,7 @@ public void setInt(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitializ
*/
@CallerSensitive
@ForceInline // to ensure Reflection.getCallerClass optimization
public void setLong(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitialization Object obj, long l)
public void setLong(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitialization @Nullable Object obj, long l)
throws IllegalArgumentException, IllegalAccessException
{
if (!override) {
Expand Down Expand Up @@ -1086,7 +1086,7 @@ public void setLong(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitiali
*/
@CallerSensitive
@ForceInline // to ensure Reflection.getCallerClass optimization
public void setFloat(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitialization Object obj, float f)
public void setFloat(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitialization @Nullable Object obj, float f)
throws IllegalArgumentException, IllegalAccessException
{
if (!override) {
Expand Down Expand Up @@ -1123,7 +1123,7 @@ public void setFloat(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitial
*/
@CallerSensitive
@ForceInline // to ensure Reflection.getCallerClass optimization
public void setDouble(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitialization Object obj, double d)
public void setDouble(@GuardSatisfied Field this, @GuardSatisfied @UnknownInitialization @Nullable Object obj, double d)
throws IllegalArgumentException, IllegalAccessException
{
if (!override) {
Expand Down
Loading