@@ -57,8 +57,8 @@ public Assignments assignNext(PotentialAssignment source) {
57
57
fAssigned );
58
58
assigned .add (source );
59
59
60
- return new Assignments (assigned , fUnassigned .subList (1 , fUnassigned
61
- .size ()), fClass );
60
+ return new Assignments (assigned , fUnassigned .subList (1 ,
61
+ fUnassigned .size ()), fClass );
62
62
}
63
63
64
64
public Object [] getActualValues (int start , int stop , boolean nullsOk )
@@ -75,25 +75,25 @@ public Object[] getActualValues(int start, int stop, boolean nullsOk)
75
75
}
76
76
77
77
public List <PotentialAssignment > potentialsForNextUnassigned ()
78
- throws ReflectiveOperationException {
78
+ throws Exception {
79
79
ParameterSignature unassigned = nextUnassigned ();
80
80
return getSupplier (unassigned ).getValueSources (unassigned );
81
81
}
82
82
83
83
private ParameterSupplier getSupplier (ParameterSignature unassigned )
84
- throws ReflectiveOperationException {
84
+ throws Exception {
85
85
ParametersSuppliedBy annotation = unassigned
86
86
.findDeepAnnotation (ParametersSuppliedBy .class );
87
-
87
+
88
88
if (annotation != null ) {
89
89
return buildParameterSupplierFromClass (annotation .value ());
90
90
} else {
91
91
return new AllMembersSupplier (fClass );
92
92
}
93
93
}
94
94
95
- private ParameterSupplier buildParameterSupplierFromClass (Class <? extends ParameterSupplier > cls )
96
- throws ReflectiveOperationException {
95
+ private ParameterSupplier buildParameterSupplierFromClass (
96
+ Class <? extends ParameterSupplier > cls ) throws Exception {
97
97
Constructor <?>[] supplierConstructors = cls .getConstructors ();
98
98
99
99
for (Constructor <?> constructor : supplierConstructors ) {
0 commit comments