On Tue, 22 Mar 2022 21:42:04 GMT, Stuart Marks <sma...@openjdk.org> wrote:
>> Naoto Sato has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Comment adjusted per review suggestion > > src/java.base/share/classes/java/lang/Character.java line 740: > >> 738: public static final class UnicodeBlock extends Subset { >> 739: /** >> 740: * 737 - the expected number of entities > > Just a quibble about this comment... it's probably not worth repeating the > actual value. But it probably is worth mentioning that the actual value > should (or must) match the number of entries added to the map by constructors > called from the static initializers in this class. Whenever aliases or new > blocks are added, this number must be adjusted. Not a "quibble" at all. In fact, I thought the same just after I submitted the PR that the number in the comment would be easily overlooked and got stale, which would defy this cleanup. Removed the actual number and put some explanation there. ------------- PR: https://git.openjdk.java.net/jdk/pull/7909