Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dead stores should be removed #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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 @@ -62,7 +62,7 @@ public OperationErrorType getType() {

@Override
public String toString() {
String rv = null;
String rv;
if (type == OperationErrorType.GENERAL) {
rv = "OperationException: " + type;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void handleLine(String line) {

@Override
public void initialize() {
ByteBuffer b = null;
ByteBuffer b;
if (delay == -1) {
b = ByteBuffer.wrap(FLUSH);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public MutatorOperationImpl(Mutator m, String k, long amt,
@Override
public void handleLine(String line) {
getLogger().debug("Result: %s", line);
OperationStatus found = null;
OperationStatus found;
if (line.equals("NOT_FOUND")) {
found = NOT_FOUND;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void handleLine(String line) {

@Override
public void initialize() {
ByteBuffer b = null;
ByteBuffer b;
b = ByteBuffer.allocate(KeyUtil.getKeyBytes(key).length
+ String.valueOf(exp).length() + OVERHEAD);
b.put(("touch " + key + " " + exp + "\r\n").getBytes());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ private Object deserialize() {
SerializingTranscoder tc = new SerializingTranscoder();
CachedData d = new CachedData(this.getItemFlags(), this.getValue(),
CachedData.MAX_SIZE);
Object rv = null;
Object rv;
rv = tc.decode(d);
return rv;
}
Expand Down