Skip to content

Commit

Permalink
8286759: TextComponentPrintable: consequent -> consecutive positions
Browse files Browse the repository at this point in the history
Reviewed-by: gli, prr
  • Loading branch information
aivanov-jdk committed Mar 14, 2024
1 parent d25c452 commit 0c3998d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2024, 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
Expand Down Expand Up @@ -780,9 +780,9 @@ private void calculateRowsMetrics() {
if (height != 0
&& (y != previousY || height != previousHeight)) {
/*
* we do not store the same value as previous. in our
* documents it is often for consequent positions to have
* the same modelToView y and height.
* We do not store the same value as previous.
* In our documents, it is common for consecutive
* positions to have the same modelToView y and height.
*/
previousY = y;
previousHeight = height;
Expand Down

1 comment on commit 0c3998d

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.