Skip to content

Commit

Permalink
小傅哥,fix:修复 addDefaultConstructor 判断问题
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzhengwei committed Jul 29, 2022
1 parent 25777da commit a47cd88
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ private void addDefaultConstructor(Class<?> clazz) {
// Ignored. This is only a final precaution, nothing we can do
}
}
}
if (constructor.isAccessible()) {
this.defaultConstructor = constructor;
if (constructor.isAccessible()) {
this.defaultConstructor = constructor;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ private void addDefaultConstructor(Class<?> clazz) {
// Ignored. This is only a final precaution, nothing we can do
}
}
}
if (constructor.isAccessible()) {
this.defaultConstructor = constructor;
if (constructor.isAccessible()) {
this.defaultConstructor = constructor;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ private void addDefaultConstructor(Class<?> clazz) {
// Ignored. This is only a final precaution, nothing we can do
}
}
}
if (constructor.isAccessible()) {
this.defaultConstructor = constructor;
if (constructor.isAccessible()) {
this.defaultConstructor = constructor;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ private void addDefaultConstructor(Class<?> clazz) {
// Ignored. This is only a final precaution, nothing we can do
}
}
}
if (constructor.isAccessible()) {
this.defaultConstructor = constructor;
if (constructor.isAccessible()) {
this.defaultConstructor = constructor;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ private void addDefaultConstructor(Class<?> clazz) {
// Ignored. This is only a final precaution, nothing we can do
}
}
}
if (constructor.isAccessible()) {
this.defaultConstructor = constructor;
if (constructor.isAccessible()) {
this.defaultConstructor = constructor;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ private void addDefaultConstructor(Class<?> clazz) {
// Ignored. This is only a final precaution, nothing we can do
}
}
}
if (constructor.isAccessible()) {
this.defaultConstructor = constructor;
if (constructor.isAccessible()) {
this.defaultConstructor = constructor;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ private void addDefaultConstructor(Class<?> clazz) {
// Ignored. This is only a final precaution, nothing we can do
}
}
}
if (constructor.isAccessible()) {
this.defaultConstructor = constructor;
if (constructor.isAccessible()) {
this.defaultConstructor = constructor;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ private void addDefaultConstructor(Class<?> clazz) {
// Ignored. This is only a final precaution, nothing we can do
}
}
}
if (constructor.isAccessible()) {
this.defaultConstructor = constructor;
if (constructor.isAccessible()) {
this.defaultConstructor = constructor;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ private void addDefaultConstructor(Class<?> clazz) {
// Ignored. This is only a final precaution, nothing we can do
}
}
}
if (constructor.isAccessible()) {
this.defaultConstructor = constructor;
if (constructor.isAccessible()) {
this.defaultConstructor = constructor;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ private void addDefaultConstructor(Class<?> clazz) {
// Ignored. This is only a final precaution, nothing we can do
}
}
}
if (constructor.isAccessible()) {
this.defaultConstructor = constructor;
if (constructor.isAccessible()) {
this.defaultConstructor = constructor;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ private void addDefaultConstructor(Class<?> clazz) {
// Ignored. This is only a final precaution, nothing we can do
}
}
}
if (constructor.isAccessible()) {
this.defaultConstructor = constructor;
if (constructor.isAccessible()) {
this.defaultConstructor = constructor;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ private void addFields(Class<?> clazz) {
if (!(Modifier.isFinal(modifiers) && Modifier.isStatic(modifiers))) {
addSetField(field);
}
}
if (!getMethods.containsKey(field.getName())) {
addGetField(field);
if (!getMethods.containsKey(field.getName())) {
addGetField(field);
}
}
}
}
Expand Down

0 comments on commit a47cd88

Please sign in to comment.