Skip to content

Commit 1d4c6ed

Browse files
authored
Reverted to the last version for talk.java, since it will be processed in smalltalk.java
1 parent 1cd5a79 commit 1d4c6ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tinystruct/examples/talk.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,19 +125,19 @@ public void run() {
125125
* @throws IOException
126126
*/
127127
public final String update(final String sessionId) throws ApplicationException, IOException {
128-
Builder message = null;
128+
Builder message;
129129
Queue<Builder> messages;
130130
synchronized (this.list) {
131131
messages = this.list.get(sessionId);
132-
while(messages != null && (message = messages.poll()) == null) {
132+
while((message = messages.poll()) == null) {
133133
try {
134134
this.list.wait(TIMEOUT);
135135
} catch (InterruptedException e) {
136136
throw new ApplicationException(e.getMessage(), e);
137137
}
138138
}
139139

140-
return message != null ? message.toString() : "";
140+
return message.toString();
141141
}
142142
}
143143

0 commit comments

Comments
 (0)