Skip to content
Snippets Groups Projects
Commit d8524591 authored by amine.chbari.etu's avatar amine.chbari.etu
Browse files

renommer variable pour eviter la confusion

parent 30068839
No related branches found
No related tags found
No related merge requests found
...@@ -170,12 +170,12 @@ public class PersistableAttributeStore extends AttributeStore implements IPersis ...@@ -170,12 +170,12 @@ public class PersistableAttributeStore extends AttributeStore implements IPersis
public void serialize(Output output) throws IOException { public void serialize(Output output) throws IOException {
Map<String, Object> persistentAttributes = new HashMap<String, Object>(); Map<String, Object> persistentAttributes = new HashMap<String, Object>();
for (Map.Entry<String, Object> entry : getAttributes().entrySet()) { for (Map.Entry<String, Object> entry : getAttributes().entrySet()) {
final String name = entry.getKey(); final String keyName = entry.getKey();
if (name.startsWith(IPersistable.TRANSIENT_PREFIX)) { if (keyName.startsWith(IPersistable.TRANSIENT_PREFIX)) {
continue; continue;
} }
persistentAttributes.put(name, entry.getValue()); persistentAttributes.put(keyName, entry.getValue());
} }
Serializer.serialize(output, persistentAttributes); Serializer.serialize(output, persistentAttributes);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment