Skip to content

Commit 1a74f31

Browse files
authored
Change printf to use System.out instead of System.err
It seems to be an overkiil to log such problems as errors. Signed-off-by: Rulle IO <[email protected]>
1 parent 594cf95 commit 1a74f31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/Java/src/org/antlr/v4/runtime/RuntimeMetaData.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,11 @@ public static void checkVersion(String generatingToolVersion, String compileTime
157157
!getMajorMinorVersion(runtimeVersion).equals(getMajorMinorVersion(compileTimeVersion));
158158

159159
if ( runtimeConflictsWithGeneratingTool ) {
160-
System.err.printf("ANTLR Tool version %s used for code generation does not match the current runtime version %s%n",
160+
System.out.printf("ANTLR Tool version %s used for code generation does not match the current runtime version %s%n",
161161
generatingToolVersion, runtimeVersion);
162162
}
163163
if ( runtimeConflictsWithCompileTimeTool ) {
164-
System.err.printf("ANTLR Runtime version %s used for parser compilation does not match the current runtime version %s%n",
164+
System.out.printf("ANTLR Runtime version %s used for parser compilation does not match the current runtime version %s%n",
165165
compileTimeVersion, runtimeVersion);
166166
}
167167
}

0 commit comments

Comments
 (0)