Skip to content

Commit 8a0d905

Browse files
Minor fix
1 parent a60b508 commit 8a0d905

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

spring-data-eclipse-store/src/main/java/software/xdev/spring/data/eclipse/store/core/IdentitySet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public boolean retainAll(@Nonnull final Collection<?> c)
113113
@Override
114114
public boolean removeAll(final Collection<?> c)
115115
{
116-
// "Why toList?" - So that if you input your own reference (this) into this funciton, it does not break.
116+
// "Why toList?" - So that if you input your own reference (this) into this function, it does not break.
117117
return c.stream().toList().stream().map(this.internalMap::remove).anyMatch(Objects::nonNull);
118118
}
119119

spring-data-eclipse-store/src/main/java/software/xdev/spring/data/eclipse/store/repository/access/modifier/FieldAccessibleMaker.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class FieldAccessibleMaker<E> implements FieldAccessModifier<E>
5555
this.field.getDeclaringClass().getSimpleName(),
5656
this.field.getName());
5757
}
58-
this.field.setAccessible(true);
58+
this.field.trySetAccessible();
5959
}
6060
}
6161

@@ -98,6 +98,7 @@ public void close()
9898
this.field.getDeclaringClass().getSimpleName(),
9999
this.field.getName());
100100
}
101+
101102
this.field.setAccessible(false);
102103
}
103104
}

0 commit comments

Comments
 (0)