boolean result = false;  switch(code) { case 300: case 301: case 302: case 303: case 304: case 305: case 307: result = true; break; }  return result;
return isRedirection(getCode());
   public static boolean isRedirection(int code)   {      boolean result = false;      switch(code)      {         case 300:         case 301:         case 302:         case 303:         case 304:         case 305:         case 307:            result = true;         break;      }      return result;   }