Suppress NPE warning

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1099905 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2011-05-05 18:19:45 +00:00
parent 471c2b3ae9
commit 70d37431ec
1 changed files with 2 additions and 1 deletions

View File

@ -883,7 +883,8 @@ public class DefaultRequestDirector implements RequestDirector {
}
}
int status = response.getStatusLine().getStatusCode(); // can't be null
@SuppressWarnings("null") // can't be null
int status = response.getStatusLine().getStatusCode();
if (status > 299) {