OSDN Git Service

リファクタリング: マジックナンバー除去
authoryukihane <yukihane.feather@gmail.com>
Thu, 11 Aug 2011 04:24:13 +0000 (13:24 +0900)
committeryukihane <yukihane.feather@gmail.com>
Thu, 11 Aug 2011 04:24:13 +0000 (13:24 +0900)
src/nicobrowser/NicoHttpClient.java

index a531a84..79ee25f 100644 (file)
@@ -875,7 +875,7 @@ public class NicoHttpClient {
         response = http.execute(post);
         int statusCode = response.getStatusLine().getStatusCode();
         response.getEntity().consumeContent();
-        if (statusCode != 200) {
+        if (statusCode != HttpStatus.SC_OK) {
             throw new IOException("マイリスト登録に失敗" + "マイリスト:" + myListId + ", 動画ID:" + videoId);
         }
     }