Skip to content

Commit

Permalink
Microoptimization: defer this string construction
Browse files Browse the repository at this point in the history
  • Loading branch information
joegallo committed Oct 22, 2024
1 parent e88dda9 commit 8f2d14e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.ElasticsearchParseException;
import org.elasticsearch.ExceptionsHelper;
import org.elasticsearch.common.Strings;
import org.elasticsearch.common.bytes.BytesReference;
import org.elasticsearch.common.util.Maps;
import org.elasticsearch.common.xcontent.LoggingDeprecationHandler;
Expand Down Expand Up @@ -239,7 +240,7 @@ private static Boolean readBoolean(String processorType, String processorTag, St
processorType,
processorTag,
propertyName,
"property isn't a boolean, but of type [" + value.getClass().getName() + "]"
Strings.format("property isn't a boolean, but of type [%s]", value.getClass().getName())
);
}

Expand Down

0 comments on commit 8f2d14e

Please sign in to comment.