Skip to content
Snippets Groups Projects
Commit 4373c55d authored by Komal Makkar's avatar Komal Makkar
Browse files

intermediate changes

parent 41bb39be
No related branches found
No related tags found
2 merge requests!77Draft: Users/komakkar/issue 26 alt,!75use friendly topic name
Pipeline #30614 failed
......@@ -53,7 +53,7 @@ public class TopicsRepositoryImpl implements ITopicsRepository {
}
public String getTopicAliasFromFullyQualifiedTopicName(String fullyQualifiedTopicName) {
if( fullyQualifiedNameToAliasMap == null) {
if (fullyQualifiedNameToAliasMap == null) {
List<Topic> topicList = listMessages();
for (Topic topicIterator : topicList) {
fullyQualifiedNameToAliasMap.put(partitionHelper.getFullyQualifiedTopicName(topicIterator.getName()), topicIterator.getName());
......@@ -63,7 +63,8 @@ public class TopicsRepositoryImpl implements ITopicsRepository {
}
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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment