Skip to content

Commit

Permalink
Fix static import of format method
Browse files Browse the repository at this point in the history
With `MessageFormat.format` being imported instead of `String.format`,
the code would produce exception with %s not being replaced:

   Query failed: All properties [%s, %s, %s] must be set if any are set
  • Loading branch information
findepi committed Jan 30, 2018
1 parent 1ca5abf commit 2ce8949
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
import static com.facebook.presto.plugin.blackhole.BlackHoleConnector.SPLIT_COUNT_PROPERTY;
import static com.facebook.presto.spi.StandardErrorCode.ALREADY_EXISTS;
import static com.facebook.presto.spi.StandardErrorCode.INVALID_TABLE_PROPERTY;
import static java.text.MessageFormat.format;
import static java.lang.String.format;
import static java.util.stream.Collectors.toList;
import static java.util.stream.Collectors.toMap;
import static java.util.stream.Collectors.toSet;
Expand Down

0 comments on commit 2ce8949

Please sign in to comment.