github-advanced-security[bot] commented on code in PR #1517:
URL: https://github.com/apache/syncope/pull/1517#discussion_r4090855653
##########
core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/spring/DomainRoutingEntityManagerFactory.java:
##########
@@ -280,4 +286,12 @@
public <R> R callInTransaction(final Function<EntityManager, R> fnctn) {
return delegate().callInTransaction(fnctn);
}
+
+ private void writeObject(final ObjectOutputStream oos) throws IOException {
Review Comment:
## CodeQL / Useless parameter
The parameter 'oos' is never used.
[Show more
details](https://github.com/apache/syncope/security/code-scanning/2680)
##########
core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/spring/DomainRoutingEntityManagerFactory.java:
##########
@@ -280,4 +286,12 @@
public <R> R callInTransaction(final Function<EntityManager, R> fnctn) {
return delegate().callInTransaction(fnctn);
}
+
+ private void writeObject(final ObjectOutputStream oos) throws IOException {
+ // prevents unwanted serialization by JCache provider
+ }
+
+ private void readObject(final ObjectInputStream ois) throws IOException,
ClassNotFoundException {
Review Comment:
## CodeQL / Useless parameter
The parameter 'ois' is never used.
[Show more
details](https://github.com/apache/syncope/security/code-scanning/2679)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]