Skip to content

Commit

Permalink
Fixed makeClone method
Browse files Browse the repository at this point in the history
- Previous commit is uncompilable because as I added generics it made visible
  class incompability
- However the method is not used anywhere

Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
  • Loading branch information
dmatej committed Sep 18, 2022
1 parent 36a75ce commit 1801789
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ public ResourceProperty getProperty(String propertyName) {
@Override
public JavaEEResource makeClone(ResourceInfo resourceInfo) {
JavaEEResource clone = doClone(resourceInfo);
Set<Entry<String, ResourceProperty>> entrySet = properties.entrySet();
for (Entry<String, ResourceProperty> next : entrySet) {
ResourceProperty propClone = new ResourcePropertyImpl(next.getKey());
Collection<ResourceProperty> props = properties.values();
for (ResourceProperty next : props) {
ResourceProperty propClone = new ResourcePropertyImpl(next.getName());
propClone.setValue(next.getValue());
clone.addProperty(propClone);
}
Expand Down

0 comments on commit 1801789

Please sign in to comment.