Commit 41bb39be authored by Komal Makkar's avatar Komal Makkar
Browse files

intermediate changes

parent feaceb80
......@@ -53,9 +53,11 @@ public class TopicsRepositoryImpl implements ITopicsRepository {
}
public String getTopicAliasFromFullyQualifiedTopicName(String fullyQualifiedTopicName) {
List<Topic> topicList = listMessages();
for (Topic topicIterator: topicList) {
fullyQualifiedNameToAliasMap.put(partitionHelper.getFullyQualifiedTopicName(topicIterator.getName()), topicIterator.getName());
if( fullyQualifiedNameToAliasMap == null) {
List<Topic> topicList = listMessages();
for (Topic topicIterator : topicList) {
fullyQualifiedNameToAliasMap.put(partitionHelper.getFullyQualifiedTopicName(topicIterator.getName()), topicIterator.getName());
}
}
return fullyQualifiedNameToAliasMap.get(fullyQualifiedTopicName);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment