Copilot commented on code in PR #3119:
URL: https://github.com/apache/jena/pull/3119#discussion_r2030215015
##########
jena-tdb2/src/main/java/org/apache/jena/tdb2/sys/DatabaseConnection.java:
##########
@@ -50,16 +50,27 @@ public class DatabaseConnection {
* Get the {@code DatabaseConnection} to a location, creating the storage
* structures with default settings if it does not exist.
*/
- public synchronized static DatabaseConnection connectCreate(Location
location) {
+ public static DatabaseConnection connectCreate(Location location) {
Review Comment:
The removal of the synchronized modifier from connectCreate may affect
thread safety. Please ensure that concurrent access is safely managed through
alternative mechanisms if needed.
```suggestion
public synchronized static DatabaseConnection connectCreate(Location
location) {
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]