Skip to content

Commit

Permalink
apache#18 Fix a few minor bugs after static code analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
vanekjar authored and David Moravek committed May 15, 2018
1 parent aea8b3a commit e334b2a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ public void dropParam(String name) {
String value = remove(name);
if (value == null) {
throw new IllegalArgumentException(String.format(
"Dropping parameter \"{}\" which does not exist.", new Object[] { name }));
"Dropping parameter \"%s\" which does not exist.", name));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ private void log() {
} // ~ end of ProcessingStats

static final class ScopedStorage {
final class StorageKey {
static final class StorageKey {
private final Object itemKey;
private final Window itemWindow;
private final String storeId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ static Map<Integer, Long> getOffsetsBeforeTimestamp(
for (String seed : servers) {

String[] parsedServer = seed.split(":");
int port = new Integer(parsedServer[1]);
int port = Integer.parseInt(parsedServer[1]);
String server = parsedServer[0];
SimpleConsumer consumer = null;

Expand Down

0 comments on commit e334b2a

Please sign in to comment.