Skip to content

Commit 571e88a

Browse files
lauraharkercopybara-github
authored andcommitted
Fix "AnnotateFormatMethod" ErrorProne warning
PiperOrigin-RevId: 846289721
1 parent e419cd4 commit 571e88a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/com/google/javascript/jscomp/Compiler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import com.google.debugging.sourcemap.SourceMapConsumerV3;
4040
import com.google.debugging.sourcemap.proto.Mapping.OriginalMapping;
4141
import com.google.errorprone.annotations.CanIgnoreReturnValue;
42+
import com.google.errorprone.annotations.FormatMethod;
4243
import com.google.errorprone.annotations.MustBeClosed;
4344
import com.google.javascript.jscomp.CodePrinter.LicenseTracker;
4445
import com.google.javascript.jscomp.CompilerInput.ModuleType;
@@ -4523,6 +4524,7 @@ public void resetAndIntitializeSourceMap() {
45234524
}
45244525

45254526
@CanIgnoreReturnValue
4527+
@FormatMethod
45264528
private static Node checkNotModule(Node script, String msg, Object... args) {
45274529
checkArgument(script.isScript(), script);
45284530
if (!script.hasOneChild()) {

0 commit comments

Comments
 (0)