Commit 4373c55d authored by Komal Makkar's avatar Komal Makkar
Browse files

intermediate changes

parent 41bb39be
Pipeline #30614 failed with stages
in 2 minutes and 9 seconds
...@@ -53,7 +53,7 @@ public class TopicsRepositoryImpl implements ITopicsRepository { ...@@ -53,7 +53,7 @@ public class TopicsRepositoryImpl implements ITopicsRepository {
} }
public String getTopicAliasFromFullyQualifiedTopicName(String fullyQualifiedTopicName) { public String getTopicAliasFromFullyQualifiedTopicName(String fullyQualifiedTopicName) {
if( fullyQualifiedNameToAliasMap == null) { if (fullyQualifiedNameToAliasMap == null) {
List<Topic> topicList = listMessages(); List<Topic> topicList = listMessages();
for (Topic topicIterator : topicList) { for (Topic topicIterator : topicList) {
fullyQualifiedNameToAliasMap.put(partitionHelper.getFullyQualifiedTopicName(topicIterator.getName()), topicIterator.getName()); fullyQualifiedNameToAliasMap.put(partitionHelper.getFullyQualifiedTopicName(topicIterator.getName()), topicIterator.getName());
...@@ -63,7 +63,8 @@ public class TopicsRepositoryImpl implements ITopicsRepository { ...@@ -63,7 +63,8 @@ public class TopicsRepositoryImpl implements ITopicsRepository {
} }
private List<Topic> getTopicTemplate() { private List<Topic> getTopicTemplate() {
Type type = new TypeToken<ArrayList<Topic>>() {}.getType(); Type type = new TypeToken<ArrayList<Topic>>() {
}.getType();
return new Gson().fromJson(FileUtil.readFile("topics.json", log), type); return new Gson().fromJson(FileUtil.readFile("topics.json", log), type);
} }
......
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