Skip to content

Commit

Permalink
HSEARCH-3816 Sonar: String function use should be optimized for singl…
Browse files Browse the repository at this point in the history
…e characters
  • Loading branch information
yrodiere committed Jan 27, 2020
1 parent e928c0c commit e9d9d4c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -45,7 +45,7 @@ private static HttpHost createHttpHost(String scheme, String hostAndPort) {
}
String host;
int port = -1;
final int portIdx = hostAndPort.lastIndexOf( ":" );
final int portIdx = hostAndPort.lastIndexOf( ':' );
if ( portIdx < 0 ) {
host = hostAndPort;
}
Expand Down

0 comments on commit e9d9d4c

Please sign in to comment.