Skip to content

Commit da19292

Browse files
author
Dennis Labordus
committed
Fixed sonar issues
Signed-off-by: Dennis Labordus <[email protected]>
1 parent 0d792d7 commit da19292

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

repository-postgresql/src/main/java/org/lfenergy/compas/scl/data/repository/postgresql/CompasSclDataPostgreSQLRepository.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,10 @@ private List<String> createLabelList(Array sqlArray) throws SQLException {
316316
// Sadly no generics in JDBC so we need to check what the Array() method returns.
317317
if (sqlArray.getArray() instanceof Object[] objectArray) {
318318
Arrays.stream(objectArray)
319-
.forEach(arrayObject -> {
320-
// Just use toString() to return the value of the PostgreSQL Object.
321-
labelsList.add(arrayObject.toString());
322-
});
319+
.forEach(arrayObject ->
320+
// Just use toString() to return the value of the PostgreSQL Object.
321+
labelsList.add(arrayObject.toString())
322+
);
323323
}
324324
return labelsList;
325325
}

repository/src/main/java/org/lfenergy/compas/scl/data/model/AbstractItem.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ public abstract class AbstractItem {
3434
required = true)
3535
private String version;
3636

37-
public AbstractItem() {
37+
protected AbstractItem() {
3838
}
3939

40-
public AbstractItem(String id, String name, String version) {
40+
protected AbstractItem(String id, String name, String version) {
4141
this.id = id;
4242
this.name = name;
4343
this.version = version;

0 commit comments

Comments
 (0)