Improved code.

This commit is contained in:
Christian P. MOMON 2018-01-02 03:11:11 +01:00
parent 7c08bf2442
commit 54371c5f7a

View File

@ -66,7 +66,12 @@ public class IndividualTopic extends Topic
*/
public Messages getMessages(final String author)
{
return this.messages.get(author);
Messages result;
result = this.messages.get(author);
//
return result;
}
/* (non-Javadoc)
@ -75,7 +80,12 @@ public class IndividualTopic extends Topic
@Override
public Set<String> getParticipants()
{
return this.messages.keySet();
Set<String> result;
result = this.messages.keySet();
//
return result;
}
/**
@ -87,6 +97,11 @@ public class IndividualTopic extends Topic
*/
public boolean hasParticipant(final String participant)
{
return this.messages.containsKey(participant);
boolean result;
result = this.messages.containsKey(participant);
//
return result;
}
}