File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -125,19 +125,19 @@ public void run() {
125
125
* @throws IOException
126
126
*/
127
127
public final String update (final String sessionId ) throws ApplicationException , IOException {
128
- Builder message = null ;
128
+ Builder message ;
129
129
Queue <Builder > messages ;
130
130
synchronized (this .list ) {
131
131
messages = this .list .get (sessionId );
132
- while (messages != null && (message = messages .poll ()) == null ) {
132
+ while ((message = messages .poll ()) == null ) {
133
133
try {
134
134
this .list .wait (TIMEOUT );
135
135
} catch (InterruptedException e ) {
136
136
throw new ApplicationException (e .getMessage (), e );
137
137
}
138
138
}
139
139
140
- return message != null ? message .toString () : "" ;
140
+ return message .toString ();
141
141
}
142
142
}
143
143
You can’t perform that action at this time.
0 commit comments