8294698: Remove unused 'checkedExceptions' param from MethodAccessorGenerator.generateMethod()
Reviewed-by: redestad
This commit is contained in:
parent
f2a32d996a
commit
46633e644a
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -69,14 +69,12 @@ class MethodAccessorGenerator extends AccessorGenerator {
|
|||||||
String name,
|
String name,
|
||||||
Class<?>[] parameterTypes,
|
Class<?>[] parameterTypes,
|
||||||
Class<?> returnType,
|
Class<?> returnType,
|
||||||
Class<?>[] checkedExceptions,
|
|
||||||
int modifiers)
|
int modifiers)
|
||||||
{
|
{
|
||||||
return (MethodAccessor) generate(declaringClass,
|
return (MethodAccessor) generate(declaringClass,
|
||||||
name,
|
name,
|
||||||
parameterTypes,
|
parameterTypes,
|
||||||
returnType,
|
returnType,
|
||||||
checkedExceptions,
|
|
||||||
modifiers,
|
modifiers,
|
||||||
false,
|
false,
|
||||||
false,
|
false,
|
||||||
@ -86,14 +84,12 @@ class MethodAccessorGenerator extends AccessorGenerator {
|
|||||||
/** This routine is not thread-safe */
|
/** This routine is not thread-safe */
|
||||||
public ConstructorAccessor generateConstructor(Class<?> declaringClass,
|
public ConstructorAccessor generateConstructor(Class<?> declaringClass,
|
||||||
Class<?>[] parameterTypes,
|
Class<?>[] parameterTypes,
|
||||||
Class<?>[] checkedExceptions,
|
|
||||||
int modifiers)
|
int modifiers)
|
||||||
{
|
{
|
||||||
return (ConstructorAccessor) generate(declaringClass,
|
return (ConstructorAccessor) generate(declaringClass,
|
||||||
"<init>",
|
"<init>",
|
||||||
parameterTypes,
|
parameterTypes,
|
||||||
Void.TYPE,
|
Void.TYPE,
|
||||||
checkedExceptions,
|
|
||||||
modifiers,
|
modifiers,
|
||||||
true,
|
true,
|
||||||
false,
|
false,
|
||||||
@ -104,7 +100,6 @@ class MethodAccessorGenerator extends AccessorGenerator {
|
|||||||
public SerializationConstructorAccessorImpl
|
public SerializationConstructorAccessorImpl
|
||||||
generateSerializationConstructor(Class<?> declaringClass,
|
generateSerializationConstructor(Class<?> declaringClass,
|
||||||
Class<?>[] parameterTypes,
|
Class<?>[] parameterTypes,
|
||||||
Class<?>[] checkedExceptions,
|
|
||||||
int modifiers,
|
int modifiers,
|
||||||
Class<?> targetConstructorClass)
|
Class<?> targetConstructorClass)
|
||||||
{
|
{
|
||||||
@ -113,7 +108,6 @@ class MethodAccessorGenerator extends AccessorGenerator {
|
|||||||
"<init>",
|
"<init>",
|
||||||
parameterTypes,
|
parameterTypes,
|
||||||
Void.TYPE,
|
Void.TYPE,
|
||||||
checkedExceptions,
|
|
||||||
modifiers,
|
modifiers,
|
||||||
true,
|
true,
|
||||||
true,
|
true,
|
||||||
@ -126,7 +120,6 @@ class MethodAccessorGenerator extends AccessorGenerator {
|
|||||||
String name,
|
String name,
|
||||||
Class<?>[] parameterTypes,
|
Class<?>[] parameterTypes,
|
||||||
Class<?> returnType,
|
Class<?> returnType,
|
||||||
Class<?>[] checkedExceptions,
|
|
||||||
int modifiers,
|
int modifiers,
|
||||||
boolean isConstructor,
|
boolean isConstructor,
|
||||||
boolean forSerialization,
|
boolean forSerialization,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -63,7 +63,6 @@ class NativeConstructorAccessorImpl extends ConstructorAccessorImpl {
|
|||||||
new MethodAccessorGenerator().
|
new MethodAccessorGenerator().
|
||||||
generateConstructor(c.getDeclaringClass(),
|
generateConstructor(c.getDeclaringClass(),
|
||||||
c.getParameterTypes(),
|
c.getParameterTypes(),
|
||||||
c.getExceptionTypes(),
|
|
||||||
c.getModifiers());
|
c.getModifiers());
|
||||||
parent.setDelegate(acc);
|
parent.setDelegate(acc);
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -63,7 +63,6 @@ class NativeMethodAccessorImpl extends MethodAccessorImpl {
|
|||||||
method.getName(),
|
method.getName(),
|
||||||
method.getParameterTypes(),
|
method.getParameterTypes(),
|
||||||
method.getReturnType(),
|
method.getReturnType(),
|
||||||
method.getExceptionTypes(),
|
|
||||||
method.getModifiers());
|
method.getModifiers());
|
||||||
parent.setDelegate(acc);
|
parent.setDelegate(acc);
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -177,7 +177,6 @@ public class ReflectionFactory {
|
|||||||
method.getName(),
|
method.getName(),
|
||||||
method.getParameterTypes(),
|
method.getParameterTypes(),
|
||||||
method.getReturnType(),
|
method.getReturnType(),
|
||||||
method.getExceptionTypes(),
|
|
||||||
method.getModifiers());
|
method.getModifiers());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -211,7 +210,6 @@ public class ReflectionFactory {
|
|||||||
return new MethodAccessorGenerator().
|
return new MethodAccessorGenerator().
|
||||||
generateConstructor(c.getDeclaringClass(),
|
generateConstructor(c.getDeclaringClass(),
|
||||||
c.getParameterTypes(),
|
c.getParameterTypes(),
|
||||||
c.getExceptionTypes(),
|
|
||||||
c.getModifiers());
|
c.getModifiers());
|
||||||
} else {
|
} else {
|
||||||
NativeConstructorAccessorImpl acc = new NativeConstructorAccessorImpl(c);
|
NativeConstructorAccessorImpl acc = new NativeConstructorAccessorImpl(c);
|
||||||
@ -421,7 +419,6 @@ public class ReflectionFactory {
|
|||||||
ConstructorAccessor acc = new MethodAccessorGenerator().
|
ConstructorAccessor acc = new MethodAccessorGenerator().
|
||||||
generateSerializationConstructor(cl,
|
generateSerializationConstructor(cl,
|
||||||
constructorToCall.getParameterTypes(),
|
constructorToCall.getParameterTypes(),
|
||||||
constructorToCall.getExceptionTypes(),
|
|
||||||
constructorToCall.getModifiers(),
|
constructorToCall.getModifiers(),
|
||||||
constructorToCall.getDeclaringClass());
|
constructorToCall.getDeclaringClass());
|
||||||
Constructor<?> c = newConstructor(constructorToCall.getDeclaringClass(),
|
Constructor<?> c = newConstructor(constructorToCall.getDeclaringClass(),
|
||||||
|
Loading…
Reference in New Issue
Block a user