Elasticsearch

elastic-search.png

Little method can go a long way

V6007 Expression ‘(int)x < 0' is always false. BCrypt.java 429
V6025 Possibly index '(int) x' is out of bounds. BCrypt.java 431

private static byte char64(char x) {
  if ((int)x  index_64.length)
    return -1;
  return index_64[(int)x];
}

Issue N1. The expression ‘(int)x ) with “greater than or equal to (“>=”).

Please click here to see more bugs from this project.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.