Skip to content

Issue #59: Display the connector variables #65

Issue #59: Display the connector variables

Issue #59: Display the connector variables #65

GitHub Actions / spotbugs completed Sep 27, 2024 in 0s

SpotBugs Source Code Analyzer report

1 violation(s) found

Annotations

Check warning on line 40 in src/main/java/org/sentrysoftware/maven/metricshub/connector/producer/model/criteria/CriterionSinkProduceVisitor.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP2

new org.sentrysoftware.maven.metricshub.connector.producer.model.criteria.CriterionSinkProduceVisitor(Sink) may expose internal representation by storing an externally mutable object into CriterionSinkProduceVisitor.sink
Raw output
 This code stores a reference to an externally mutable object into the internal representation of the object. If instances are accessed by untrusted code, and unchecked changes to the mutable object would compromise security or other important properties, you will need to do something different. Storing a copy of the object is better approach in many situations.