8042742: possible error in Tokens.Token.checkKind() for javac

Correcting expected token kind in an assert.

Reviewed-by: jlahoda
This commit is contained in:
Adam Sotona 2020-01-24 12:31:51 +01:00 committed by Jan Lahoda
parent c8e7590899
commit d97fe7b050

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -357,7 +357,7 @@ public class Tokens {
protected void checkKind() {
if (kind.tag != Tag.DEFAULT) {
throw new AssertionError("Bad token kind - expected " + Tag.STRING);
throw new AssertionError("Bad token kind - expected " + Tag.DEFAULT);
}
}