Skip to content

Commit

Permalink
Merge pull request square#149 from square/jw/package-move
Browse files Browse the repository at this point in the history
Move packages.
  • Loading branch information
edenman committed Feb 19, 2013
2 parents 9388669 + 81a1b3b commit 49c9c02
Show file tree
Hide file tree
Showing 24 changed files with 33 additions and 33 deletions.
4 changes: 2 additions & 2 deletions retrofit/src/main/java/retrofit/http/Converter.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
package retrofit.http;

import java.lang.reflect.Type;
import retrofit.io.TypedInput;
import retrofit.io.TypedOutput;
import retrofit.http.mime.TypedInput;
import retrofit.http.mime.TypedOutput;

/**
* Arbiter for converting objects to and from their representation in HTTP.
Expand Down
4 changes: 2 additions & 2 deletions retrofit/src/main/java/retrofit/http/GsonConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.Type;
import retrofit.io.TypedInput;
import retrofit.io.TypedOutput;
import retrofit.http.mime.TypedInput;
import retrofit.http.mime.TypedOutput;

import static retrofit.http.RestAdapter.UTF_8;

Expand Down
4 changes: 2 additions & 2 deletions retrofit/src/main/java/retrofit/http/Platform.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicInteger;
import javax.inject.Provider;
import retrofit.android.AndroidApacheClient;
import retrofit.android.MainThreadExecutor;
import retrofit.http.android.AndroidApacheClient;
import retrofit.http.android.MainThreadExecutor;
import retrofit.http.client.ApacheClient;
import retrofit.http.client.Client;

Expand Down
4 changes: 2 additions & 2 deletions retrofit/src/main/java/retrofit/http/RequestBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
import java.util.Map;
import java.util.Set;
import retrofit.http.client.Request;
import retrofit.io.TypedOutput;
import retrofit.io.TypedString;
import retrofit.http.mime.TypedOutput;
import retrofit.http.mime.TypedString;

import static retrofit.http.RestAdapter.UTF_8;
import static retrofit.http.RestMethodInfo.NO_SINGLE_ENTITY;
Expand Down
6 changes: 3 additions & 3 deletions retrofit/src/main/java/retrofit/http/RestAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
import retrofit.http.client.Client;
import retrofit.http.client.Request;
import retrofit.http.client.Response;
import retrofit.io.TypedByteArray;
import retrofit.io.TypedInput;
import retrofit.io.TypedOutput;
import retrofit.http.mime.TypedByteArray;
import retrofit.http.mime.TypedInput;
import retrofit.http.mime.TypedOutput;

import static retrofit.http.Utils.SynchronousExecutor;

Expand Down
2 changes: 1 addition & 1 deletion retrofit/src/main/java/retrofit/http/RestMethodInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.inject.Named;
import retrofit.io.TypedOutput;
import retrofit.http.mime.TypedOutput;

/** Cached details about an interface method. */
final class RestMethodInfo {
Expand Down
2 changes: 1 addition & 1 deletion retrofit/src/main/java/retrofit/http/RetrofitError.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import java.io.IOException;
import java.lang.reflect.Type;
import retrofit.http.client.Response;
import retrofit.io.TypedInput;
import retrofit.http.mime.TypedInput;

public class RetrofitError extends RuntimeException {
static RetrofitError networkError(String url, IOException exception) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2013 Square, Inc.
package retrofit.android;
package retrofit.http.android;

import android.net.http.AndroidHttpClient;
import retrofit.http.client.ApacheClient;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2012 Square, Inc.
package retrofit.android;
package retrofit.http.android;

import android.os.Handler;
import android.os.Looper;
Expand Down
4 changes: 2 additions & 2 deletions retrofit/src/main/java/retrofit/http/client/ApacheClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
import org.apache.http.message.BasicHeader;
import org.apache.http.util.EntityUtils;
import retrofit.http.Header;
import retrofit.io.TypedByteArray;
import retrofit.io.TypedOutput;
import retrofit.http.mime.TypedByteArray;
import retrofit.http.mime.TypedOutput;

import static org.apache.http.entity.mime.HttpMultipartMode.BROWSER_COMPATIBLE;

Expand Down
2 changes: 1 addition & 1 deletion retrofit/src/main/java/retrofit/http/client/Request.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import java.util.List;
import java.util.Map;
import retrofit.http.Header;
import retrofit.io.TypedOutput;
import retrofit.http.mime.TypedOutput;

/** Encapsulates all of the information necessary to make an HTTP request. */
public final class Request {
Expand Down
2 changes: 1 addition & 1 deletion retrofit/src/main/java/retrofit/http/client/Response.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import java.util.Collections;
import java.util.List;
import retrofit.http.Header;
import retrofit.io.TypedInput;
import retrofit.http.mime.TypedInput;

/** An HTTP response. */
public final class Response {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import java.io.IOException;
import java.io.InputStream;
import retrofit.io.TypedInput;
import retrofit.http.mime.TypedInput;

public class TypedInputStream implements TypedInput {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2010 Square, Inc.
package retrofit.io;
package retrofit.http.mime;

import java.io.ByteArrayInputStream;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2010 Square, Inc.
package retrofit.io;
package retrofit.http.mime;

import java.io.File;
import java.io.FileInputStream;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2013 Square, Inc.
package retrofit.io;
package retrofit.http.mime;

import java.io.IOException;
import java.io.InputStream;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2013 Square, Inc.
package retrofit.io;
package retrofit.http.mime;

import java.io.IOException;
import java.io.OutputStream;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2013 Square, Inc.
package retrofit.io;
package retrofit.http.mime;

import java.io.UnsupportedEncodingException;

Expand Down
4 changes: 2 additions & 2 deletions retrofit/src/test/java/retrofit/http/RequestBuilderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
import java.util.Set;
import org.junit.Test;
import retrofit.http.client.Request;
import retrofit.io.TypedString;
import retrofit.io.TypedOutput;
import retrofit.http.mime.TypedString;
import retrofit.http.mime.TypedOutput;

import static org.fest.assertions.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
Expand Down
2 changes: 1 addition & 1 deletion retrofit/src/test/java/retrofit/http/RestAdapterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import retrofit.http.client.Client;
import retrofit.http.client.Request;
import retrofit.http.client.Response;
import retrofit.io.TypedString;
import retrofit.http.mime.TypedString;

import static org.fest.assertions.api.Assertions.assertThat;
import static org.fest.assertions.api.Assertions.fail;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import javax.inject.Named;
import org.junit.Ignore;
import org.junit.Test;
import retrofit.io.TypedOutput;
import retrofit.http.mime.TypedOutput;

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
import org.apache.http.message.BasicStatusLine;
import org.junit.Test;
import retrofit.http.Header;
import retrofit.io.TypedOutput;
import retrofit.io.TypedString;
import retrofit.http.mime.TypedOutput;
import retrofit.http.mime.TypedString;

import static org.fest.assertions.api.Assertions.assertThat;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2010 Square, Inc.
package retrofit.io;
package retrofit.http.mime;

import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2010 Square, Inc.
package retrofit.io;
package retrofit.http.mime;

import java.io.File;
import java.io.FileOutputStream;
Expand Down

0 comments on commit 49c9c02

Please sign in to comment.