Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class CacheDispatcher extends Thread {
/**
* Used for telling us to die.
*/
private volatile boolean mQuit = false;
private volatile boolean mQuit;

/**
* Creates a new cache triage dispatcher thread. You must call {@link #start()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public Marker(String name, long thread, long time) {
}

private final List<Marker> mMarkers = new ArrayList<Marker>();
private boolean mFinished = false;
private boolean mFinished;

/**
* Adds a marker to this log with the specified name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class NetworkDispatcher extends Thread {
/**
* Used for telling us to die.
*/
private volatile boolean mQuit = false;
private volatile boolean mQuit;

/**
* Creates a new network dispatcher thread. You must call {@link #start()}
Expand Down
8 changes: 4 additions & 4 deletions library/src/main/java/com/vincestyling/netroid/Request.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,20 +97,20 @@ public interface Method {
/**
* Whether or not this request has been canceled.
*/
private boolean mCanceled = false;
private boolean mCanceled;

/**
* Whether or not a response has been delivered for this request yet.
*/
private boolean mResponseDelivered = false;
private boolean mResponseDelivered;

/** Whether the request should be retried in the event of an HTTP 5xx (server) error. */
private boolean mShouldRetryServerErrors = false;
private boolean mShouldRetryServerErrors;

/**
* A cheap variant of request tracing used to dump slow requests.
*/
private long mRequestBirthTime = 0;
private long mRequestBirthTime;

/**
* Threshold at which we should log the request (even when debug logging is not enabled).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public static <T> Response<T> error(NetroidError error) {
/**
* True if this response was a soft-expired one and a second one MAY be coming.
*/
public boolean intermediate = false;
public boolean intermediate;

/**
* Returns whether this response is considered successful.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class DiskCache {
/**
* Total amount of space currently used by the cache in bytes.
*/
private long mTotalSize = 0;
private long mTotalSize;

/**
* The root directory to use for the cache.
Expand Down Expand Up @@ -534,7 +534,7 @@ public void setCharset(String charset) {
}

private static class CountingInputStream extends FilterInputStream {
private int bytesRead = 0;
private int bytesRead;

private CountingInputStream(InputStream in) {
super(in);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class ByteArrayPool {
/**
* The total size of the buffers in the pool
*/
private int mCurrentSize = 0;
private int mCurrentSize;

/**
* The maximum aggregate size of the buffers in the pool. Old buffers are discarded to stay
Expand Down