Skip to content

Commit eda1871

Browse files
Merge pull request #20 from BorderTech/latest-qa
Fix sonar qa
2 parents 356859a + 9c62ae4 commit eda1871

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/github/bordertech/config/DefaultConfiguration.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,7 +1505,7 @@ class IncludeProperties extends Properties {
15051505
* @return the old value for the key, or null if there was no previously associated value.
15061506
*/
15071507
@Override
1508-
public Object put(final Object aKey, final Object aValue) {
1508+
public synchronized Object put(final Object aKey, final Object aValue) {
15091509
String key = (String) aKey;
15101510
String value = (String) aValue;
15111511

@@ -1541,14 +1541,14 @@ public Object put(final Object aKey, final Object aValue) {
15411541
}
15421542

15431543
@Override
1544-
public int hashCode() {
1544+
public synchronized int hashCode() {
15451545
int hash = 5;
15461546
hash = 97 * hash + Objects.hashCode(this.location);
15471547
return hash;
15481548
}
15491549

15501550
@Override
1551-
public boolean equals(final Object obj) {
1551+
public synchronized boolean equals(final Object obj) {
15521552
return obj instanceof IncludeProperties && Objects.equals(this.location, ((IncludeProperties) obj).location);
15531553
}
15541554

0 commit comments

Comments
 (0)