Skip to content

Commit

Permalink
[bumptech#1 @Victor-Park @wilson-a] EngineKey 와 Singature 접근 제한자 완화
Browse files Browse the repository at this point in the history
  • Loading branch information
sullivan-shin committed Apr 25, 2016
1 parent 0f93217 commit 606e51d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import java.security.MessageDigest;

@SuppressWarnings("rawtypes")
class EngineKey implements Key {
public class EngineKey implements Key {
private static final String EMPTY_LOG_STRING = "";
private final String id;
private final int width;
Expand All @@ -26,7 +26,7 @@ class EngineKey implements Key {
private final Key signature;
private String stringKey;
private int hashCode;
private Key originalKey;
private OriginalKey originalKey;

public EngineKey(String id, Key signature, int width, int height, ResourceDecoder cacheDecoder,
ResourceDecoder decoder, Transformation transformation, ResourceEncoder encoder,
Expand All @@ -43,7 +43,7 @@ public EngineKey(String id, Key signature, int width, int height, ResourceDecode
this.sourceEncoder = sourceEncoder;
}

public Key getOriginalKey() {
public OriginalKey getOriginalKey() {
if (originalKey == null) {
originalKey = new OriginalKey(id, signature);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* A class for keeping track of the cache key of the original data + any requested signature.
*/
class OriginalKey implements Key {
public class OriginalKey implements Key {

private final String id;
private final Key signature;
Expand Down Expand Up @@ -39,6 +39,10 @@ public boolean equals(Object o) {
return true;
}

public Key getSignature() {
return signature;
}

@Override
public int hashCode() {
int result = id.hashCode();
Expand Down

0 comments on commit 606e51d

Please sign in to comment.