[Snyk] Upgrade com.google.guava:guava from 31.1-jre to 32.1.1-jre #161
SpotBugs Source Code Analyzer report
174 violation(s) found
Annotations
Check warning on line 39 in src/main/java/org/fiware/mintaka/context/LdContextCache.java
github-actions / spotbugs
EI_EXPOSE_REP2
new org.fiware.mintaka.context.LdContextCache(ContextProperties) may expose internal representation by storing an externally mutable object into LdContextCache.contextProperties
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 19 in src/main/java/org/fiware/mintaka/domain/TemporalValueGeoProperty.java
github-actions / spotbugs
EI_EXPOSE_REP
org.fiware.mintaka.domain.TemporalValueGeoProperty.getValues() may expose internal representation by returning TemporalValueGeoProperty.values
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 11 in src/main/java/org/fiware/mintaka/domain/TemporalValueGeoProperty.java
github-actions / spotbugs
EI_EXPOSE_REP2
org.fiware.mintaka.domain.TemporalValueGeoProperty.setValues(List) may expose internal representation by storing an externally mutable object into TemporalValueGeoProperty.values
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 20 in src/main/java/org/fiware/mintaka/domain/TemporalValueProperty.java
github-actions / spotbugs
EI_EXPOSE_REP
org.fiware.mintaka.domain.TemporalValueProperty.getValues() may expose internal representation by returning TemporalValueProperty.values
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 12 in src/main/java/org/fiware/mintaka/domain/TemporalValueProperty.java
github-actions / spotbugs
EI_EXPOSE_REP2
org.fiware.mintaka.domain.TemporalValueProperty.setValues(List) may expose internal representation by storing an externally mutable object into TemporalValueProperty.values
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 20 in src/main/java/org/fiware/mintaka/domain/TemporalValueRelationship.java
github-actions / spotbugs
EI_EXPOSE_REP
org.fiware.mintaka.domain.TemporalValueRelationship.getObjects() may expose internal representation by returning TemporalValueRelationship.objects
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 12 in src/main/java/org/fiware/mintaka/domain/TemporalValueRelationship.java
github-actions / spotbugs
EI_EXPOSE_REP2
org.fiware.mintaka.domain.TemporalValueRelationship.setObjects(List) may expose internal representation by storing an externally mutable object into TemporalValueRelationship.objects
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 45 in src/main/java/org/fiware/mintaka/domain/TemporalValuesEntity.java
github-actions / spotbugs
EI_EXPOSE_REP
org.fiware.mintaka.domain.TemporalValuesEntity.getAdditionalProperties() may expose internal representation by returning TemporalValuesEntity.additionalProperties
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 27 in src/main/java/org/fiware/mintaka/domain/TemporalValuesEntity.java
github-actions / spotbugs
EI_EXPOSE_REP
org.fiware.mintaka.domain.TemporalValuesEntity.getLocation() may expose internal representation by returning TemporalValuesEntity.location
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 30 in src/main/java/org/fiware/mintaka/domain/TemporalValuesEntity.java
github-actions / spotbugs
EI_EXPOSE_REP
org.fiware.mintaka.domain.TemporalValuesEntity.getObservationSpace() may expose internal representation by returning TemporalValuesEntity.observationSpace
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 33 in src/main/java/org/fiware/mintaka/domain/TemporalValuesEntity.java
github-actions / spotbugs
EI_EXPOSE_REP
org.fiware.mintaka.domain.TemporalValuesEntity.getOperationSpace() may expose internal representation by returning TemporalValuesEntity.operationSpace
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 13 in src/main/java/org/fiware/mintaka/domain/TemporalValuesEntity.java
github-actions / spotbugs
EI_EXPOSE_REP2
org.fiware.mintaka.domain.TemporalValuesEntity.setAdditionalProperties(Map) may expose internal representation by storing an externally mutable object into TemporalValuesEntity.additionalProperties
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 13 in src/main/java/org/fiware/mintaka/domain/TemporalValuesEntity.java
github-actions / spotbugs
EI_EXPOSE_REP2
org.fiware.mintaka.domain.TemporalValuesEntity.setLocation(TemporalValueGeoProperty) may expose internal representation by storing an externally mutable object into TemporalValuesEntity.location
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 13 in src/main/java/org/fiware/mintaka/domain/TemporalValuesEntity.java
github-actions / spotbugs
EI_EXPOSE_REP2
org.fiware.mintaka.domain.TemporalValuesEntity.setObservationSpace(TemporalValueGeoProperty) may expose internal representation by storing an externally mutable object into TemporalValuesEntity.observationSpace
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 13 in src/main/java/org/fiware/mintaka/domain/TemporalValuesEntity.java
github-actions / spotbugs
EI_EXPOSE_REP2
org.fiware.mintaka.domain.TemporalValuesEntity.setOperationSpace(TemporalValueGeoProperty) may expose internal representation by storing an externally mutable object into TemporalValuesEntity.operationSpace
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/org/fiware/mintaka/domain/query/ngsi/ComparisonTerm.java
github-actions / spotbugs
EI_EXPOSE_REP
org.fiware.mintaka.domain.query.ngsi.ComparisonTerm.getContextUrls() may expose internal representation by returning ComparisonTerm.contextUrls
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 66 in src/main/java/org/fiware/mintaka/domain/query/ngsi/ComparisonTerm.java
github-actions / spotbugs
EI_EXPOSE_REP2
new org.fiware.mintaka.domain.query.ngsi.ComparisonTerm(String, ComparisonOperator, String, String, LdContextCache, List) may expose internal representation by storing an externally mutable object into ComparisonTerm.contextUrls
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 17 in src/main/java/org/fiware/mintaka/domain/query/ngsi/LogicalTerm.java
github-actions / spotbugs
EI_EXPOSE_REP
org.fiware.mintaka.domain.query.ngsi.LogicalTerm.getSubTerms() may expose internal representation by returning LogicalTerm.subTerms
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 103 in src/main/java/org/fiware/mintaka/domain/query/temporal/TimeQuery.java
github-actions / spotbugs
NP_NULL_ON_SOME_PATH
Possible null pointer dereference of TimeQuery.timeRelation in org.fiware.mintaka.domain.query.temporal.TimeQuery.getSqlRepresentation(String)
Raw output
There is a branch of statement that, if executed, guarantees that a null value will be dereferenced, which would generate a NullPointerException when the code is executed. Of course, the problem might be that the branch or statement is infeasible and that the null pointer exception can't ever be executed; deciding that is beyond the ability of SpotBugs.
Check warning on line 68 in src/main/java/org/fiware/mintaka/persistence/AbstractAttribute.java
github-actions / spotbugs
EI_EXPOSE_REP
org.fiware.mintaka.persistence.AbstractAttribute.getGeoLineString() may expose internal representation by returning AbstractAttribute.geoLineString
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 72 in src/main/java/org/fiware/mintaka/persistence/AbstractAttribute.java
github-actions / spotbugs
EI_EXPOSE_REP
org.fiware.mintaka.persistence.AbstractAttribute.getGeoMultiLineString() may expose internal representation by returning AbstractAttribute.geoMultiLineString
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 64 in src/main/java/org/fiware/mintaka/persistence/AbstractAttribute.java
github-actions / spotbugs
EI_EXPOSE_REP
org.fiware.mintaka.persistence.AbstractAttribute.getGeoMultiPolygon() may expose internal representation by returning AbstractAttribute.geoMultiPolygon
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 56 in src/main/java/org/fiware/mintaka/persistence/AbstractAttribute.java
github-actions / spotbugs
EI_EXPOSE_REP
org.fiware.mintaka.persistence.AbstractAttribute.getGeoPoint() may expose internal representation by returning AbstractAttribute.geoPoint
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 60 in src/main/java/org/fiware/mintaka/persistence/AbstractAttribute.java
github-actions / spotbugs
EI_EXPOSE_REP
org.fiware.mintaka.persistence.AbstractAttribute.getGeoPolygon() may expose internal representation by returning AbstractAttribute.geoPolygon
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 15 in src/main/java/org/fiware/mintaka/persistence/AbstractAttribute.java
github-actions / spotbugs
EI_EXPOSE_REP2
org.fiware.mintaka.persistence.AbstractAttribute.setGeoLineString(LineString) may expose internal representation by storing an externally mutable object into AbstractAttribute.geoLineString
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.