Skip to content

Commit

Permalink
dont make defensive copy
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-bzabek committed Aug 13, 2024
1 parent 62f7c46 commit 31981c2
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ private JdbcProperties(Properties combinedProperties, Properties proxyProperties
}

public Properties getProperties() {
Properties copy = new Properties();
copy.putAll(this.properties);
return copy;
return properties;
}

public String getProperty(String key) {
Expand All @@ -30,9 +28,7 @@ public Object get(String key) {
}

public Properties getProxyProperties() {
Properties copy = new Properties();
copy.putAll(this.proxyProperties);
return copy;
return proxyProperties;
}

/**
Expand Down

0 comments on commit 31981c2

Please sign in to comment.