Skip to content

[Snyk] Security upgrade ca.uhn.hapi.fhir:hapi-fhir-validation from 6.8.3 to 6.10.0 #252

[Snyk] Security upgrade ca.uhn.hapi.fhir:hapi-fhir-validation from 6.8.3 to 6.10.0

[Snyk] Security upgrade ca.uhn.hapi.fhir:hapi-fhir-validation from 6.8.3 to 6.10.0 #252

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

SpotBugs Source Code Analyzer report

98 violation(s) found

Annotations

Check warning on line 157 in src\main\java\health\ere\ps\model\config\UserConfigurations.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE

Redundant nullcheck of o, which is known to be non-null in health.ere.ps.model.config.UserConfigurations.properties()
Raw output
This method contains a redundant check of a known non-null value against the constant null.

Check warning on line 63 in src\main\java\health\ere\ps\model\erixa\PrescriptionTransferEntry.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP

health.ere.ps.model.erixa.PrescriptionTransferEntry.getBirthday() may expose internal representation by returning PrescriptionTransferEntry.birthday
Raw output
Returning a reference to a mutable object value stored in one of the object's fields exposes 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. Returning a new copy of the object is better approach in many situations.

Check warning on line 166 in src\main\java\health\ere\ps\model\erixa\PrescriptionTransferEntry.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP

health.ere.ps.model.erixa.PrescriptionTransferEntry.getCreationDateTime() may expose internal representation by returning PrescriptionTransferEntry.creationDateTime
Raw output
Returning a reference to a mutable object value stored in one of the object's fields exposes 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. Returning a new copy of the object is better approach in many situations.

Check warning on line 174 in src\main\java\health\ere\ps\model\erixa\PrescriptionTransferEntry.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP

health.ere.ps.model.erixa.PrescriptionTransferEntry.getSurgeryDate() may expose internal representation by returning PrescriptionTransferEntry.surgeryDate
Raw output
Returning a reference to a mutable object value stored in one of the object's fields exposes 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. Returning a new copy of the object is better approach in many situations.

Check warning on line 67 in src\main\java\health\ere\ps\model\erixa\PrescriptionTransferEntry.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP2

health.ere.ps.model.erixa.PrescriptionTransferEntry.setBirthday(Date) may expose internal representation by storing an externally mutable object into PrescriptionTransferEntry.birthday
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.

Check warning on line 170 in src\main\java\health\ere\ps\model\erixa\PrescriptionTransferEntry.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP2

health.ere.ps.model.erixa.PrescriptionTransferEntry.setCreationDateTime(Date) may expose internal representation by storing an externally mutable object into PrescriptionTransferEntry.creationDateTime
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.

Check warning on line 178 in src\main\java\health\ere\ps\model\erixa\PrescriptionTransferEntry.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP2

health.ere.ps.model.erixa.PrescriptionTransferEntry.setSurgeryDate(Date) may expose internal representation by storing an externally mutable object into PrescriptionTransferEntry.surgeryDate
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.

Check warning on line 75 in src\main\java\health\ere\ps\model\gematik\BundleWithAccessCodeOrThrowable.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP

health.ere.ps.model.gematik.BundleWithAccessCodeOrThrowable.getSignedBundle() may expose internal representation by returning BundleWithAccessCodeOrThrowable.signedBundle
Raw output
Returning a reference to a mutable object value stored in one of the object's fields exposes 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. Returning a new copy of the object is better approach in many situations.

Check warning on line 79 in src\main\java\health\ere\ps\model\gematik\BundleWithAccessCodeOrThrowable.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP2

health.ere.ps.model.gematik.BundleWithAccessCodeOrThrowable.setSignedBundle(byte[]) may expose internal representation by storing an externally mutable object into BundleWithAccessCodeOrThrowable.signedBundle
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.

Check warning on line 212 in src\main\java\health\ere\ps\model\idp\client\data\IdpDiscoveryDocument.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP

health.ere.ps.model.idp.client.data.IdpDiscoveryDocument.getAcrValuesSupported() may expose internal representation by returning IdpDiscoveryDocument.acrValuesSupported
Raw output
Returning a reference to a mutable object value stored in one of the object's fields exposes 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. Returning a new copy of the object is better approach in many situations.

Check warning on line 228 in src\main\java\health\ere\ps\model\idp\client\data\IdpDiscoveryDocument.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP

health.ere.ps.model.idp.client.data.IdpDiscoveryDocument.getCodeChallengeMethodsSupported() may expose internal representation by returning IdpDiscoveryDocument.codeChallengeMethodsSupported
Raw output
Returning a reference to a mutable object value stored in one of the object's fields exposes 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. Returning a new copy of the object is better approach in many situations.

Check warning on line 204 in src\main\java\health\ere\ps\model\idp\client\data\IdpDiscoveryDocument.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP

health.ere.ps.model.idp.client.data.IdpDiscoveryDocument.getGrantTypesSupported() may expose internal representation by returning IdpDiscoveryDocument.grantTypesSupported
Raw output
Returning a reference to a mutable object value stored in one of the object's fields exposes 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. Returning a new copy of the object is better approach in many situations.

Check warning on line 172 in src\main\java\health\ere\ps\model\idp\client\data\IdpDiscoveryDocument.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP

health.ere.ps.model.idp.client.data.IdpDiscoveryDocument.getIdTokenSigningAlgValuesSupported() may expose internal representation by returning IdpDiscoveryDocument.idTokenSigningAlgValuesSupported
Raw output
Returning a reference to a mutable object value stored in one of the object's fields exposes 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. Returning a new copy of the object is better approach in many situations.

Check warning on line 196 in src\main\java\health\ere\ps\model\idp\client\data\IdpDiscoveryDocument.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP

health.ere.ps.model.idp.client.data.IdpDiscoveryDocument.getResponseModesSupported() may expose internal representation by returning IdpDiscoveryDocument.responseModesSupported
Raw output
Returning a reference to a mutable object value stored in one of the object's fields exposes 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. Returning a new copy of the object is better approach in many situations.

Check warning on line 180 in src\main\java\health\ere\ps\model\idp\client\data\IdpDiscoveryDocument.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP

health.ere.ps.model.idp.client.data.IdpDiscoveryDocument.getResponseTypesSupported() may expose internal representation by returning IdpDiscoveryDocument.responseTypesSupported
Raw output
Returning a reference to a mutable object value stored in one of the object's fields exposes 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. Returning a new copy of the object is better approach in many situations.

Check warning on line 188 in src\main\java\health\ere\ps\model\idp\client\data\IdpDiscoveryDocument.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP

health.ere.ps.model.idp.client.data.IdpDiscoveryDocument.getScopesSupported() may expose internal representation by returning IdpDiscoveryDocument.scopesSupported
Raw output
Returning a reference to a mutable object value stored in one of the object's fields exposes 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. Returning a new copy of the object is better approach in many situations.

Check warning on line 164 in src\main\java\health\ere\ps\model\idp\client\data\IdpDiscoveryDocument.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP

health.ere.ps.model.idp.client.data.IdpDiscoveryDocument.getSubjectTypesSupported() may expose internal representation by returning IdpDiscoveryDocument.subjectTypesSupported
Raw output
Returning a reference to a mutable object value stored in one of the object's fields exposes 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. Returning a new copy of the object is better approach in many situations.

Check warning on line 220 in src\main\java\health\ere\ps\model\idp\client\data\IdpDiscoveryDocument.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP

health.ere.ps.model.idp.client.data.IdpDiscoveryDocument.getTokenEndpointAuthMethodsSupported() may expose internal representation by returning IdpDiscoveryDocument.tokenEndpointAuthMethodsSupported
Raw output
Returning a reference to a mutable object value stored in one of the object's fields exposes 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. Returning a new copy of the object is better approach in many situations.

Check warning on line 59 in src\main\java\health\ere\ps\model\idp\client\data\IdpDiscoveryDocument.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP2

new health.ere.ps.model.idp.client.data.IdpDiscoveryDocument(String, String, String, String, String, String, String, String, long, long, String, String, String[], String[], String[], String[], String[], String[], String[], String[], String[]) may expose internal representation by storing an externally mutable object into IdpDiscoveryDocument.acrValuesSupported
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.

Check warning on line 61 in src\main\java\health\ere\ps\model\idp\client\data\IdpDiscoveryDocument.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP2

new health.ere.ps.model.idp.client.data.IdpDiscoveryDocument(String, String, String, String, String, String, String, String, long, long, String, String, String[], String[], String[], String[], String[], String[], String[], String[], String[]) may expose internal representation by storing an externally mutable object into IdpDiscoveryDocument.codeChallengeMethodsSupported
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.

Check warning on line 58 in src\main\java\health\ere\ps\model\idp\client\data\IdpDiscoveryDocument.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP2

new health.ere.ps.model.idp.client.data.IdpDiscoveryDocument(String, String, String, String, String, String, String, String, long, long, String, String, String[], String[], String[], String[], String[], String[], String[], String[], String[]) may expose internal representation by storing an externally mutable object into IdpDiscoveryDocument.grantTypesSupported
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.

Check warning on line 54 in src\main\java\health\ere\ps\model\idp\client\data\IdpDiscoveryDocument.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP2

new health.ere.ps.model.idp.client.data.IdpDiscoveryDocument(String, String, String, String, String, String, String, String, long, long, String, String, String[], String[], String[], String[], String[], String[], String[], String[], String[]) may expose internal representation by storing an externally mutable object into IdpDiscoveryDocument.idTokenSigningAlgValuesSupported
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.

Check warning on line 57 in src\main\java\health\ere\ps\model\idp\client\data\IdpDiscoveryDocument.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP2

new health.ere.ps.model.idp.client.data.IdpDiscoveryDocument(String, String, String, String, String, String, String, String, long, long, String, String, String[], String[], String[], String[], String[], String[], String[], String[], String[]) may expose internal representation by storing an externally mutable object into IdpDiscoveryDocument.responseModesSupported
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.

Check warning on line 55 in src\main\java\health\ere\ps\model\idp\client\data\IdpDiscoveryDocument.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP2

new health.ere.ps.model.idp.client.data.IdpDiscoveryDocument(String, String, String, String, String, String, String, String, long, long, String, String, String[], String[], String[], String[], String[], String[], String[], String[], String[]) may expose internal representation by storing an externally mutable object into IdpDiscoveryDocument.responseTypesSupported
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.

Check warning on line 56 in src\main\java\health\ere\ps\model\idp\client\data\IdpDiscoveryDocument.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

EI_EXPOSE_REP2

new health.ere.ps.model.idp.client.data.IdpDiscoveryDocument(String, String, String, String, String, String, String, String, long, long, String, String, String[], String[], String[], String[], String[], String[], String[], String[], String[]) may expose internal representation by storing an externally mutable object into IdpDiscoveryDocument.scopesSupported
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.