Skip to content

Commit

Permalink
Code cleanup per IntelliJ.
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWharton committed Jan 5, 2017
1 parent 1f3db73 commit a038626
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion picasso/src/main/java/com/squareup/picasso/Callback.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public interface Callback {

void onError();

public static class EmptyCallback implements Callback {
class EmptyCallback implements Callback {

@Override public void onSuccess() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static boolean shouldWriteToMemoryCache(int memoryPolicy) {

final int index;

private MemoryPolicy(int index) {
MemoryPolicy(int index) {
this.index = index;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static boolean isOfflineOnly(int networkPolicy) {

final int index;

private NetworkPolicy(int index) {
NetworkPolicy(int index) {
this.index = index;
}
}
2 changes: 1 addition & 1 deletion picasso/src/main/java/com/squareup/picasso/Picasso.java
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ public enum LoadedFrom {

final int debugColor;

private LoadedFrom(int debugColor) {
LoadedFrom(int debugColor) {
this.debugColor = debugColor;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public Result(@NonNull InputStream stream, @NonNull Picasso.LoadedFrom loadedFro
@Nullable InputStream stream,
@NonNull Picasso.LoadedFrom loadedFrom,
int exifOrientation) {
if (!(bitmap != null ^ stream != null)) {
if ((bitmap != null) == (stream != null)) {
throw new AssertionError();
}
this.bitmap = bitmap;
Expand Down

0 comments on commit a038626

Please sign in to comment.