Skip to content

Commit

Permalink
Use StringBuilder instead of StringBuffer to avoid unnecessary synchr…
Browse files Browse the repository at this point in the history
…onization
  • Loading branch information
madanadit committed Jun 21, 2016
1 parent 60a23dd commit c9fa13f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/common/src/main/java/alluxio/util/FormatUtils.java
Expand Up @@ -192,7 +192,7 @@ public static long parseSpaceSize(String spaceSize) {
* @return human-readable version of the given mode
*/
public static String formatMode(short mode, boolean directory) {
StringBuffer str = new StringBuffer();
StringBuilder str = new StringBuilder();
if (directory) {
str.append("d");
} else {
Expand Down

0 comments on commit c9fa13f

Please sign in to comment.