Improved code.
This commit is contained in:
parent
7c08bf2442
commit
54371c5f7a
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user