Skip to content

Commit

Permalink
8324053: Use the blessed modifier order for sealed in java.base
Browse files Browse the repository at this point in the history
Reviewed-by: naoto, darcy, ihse, dfuchs
  • Loading branch information
pavelrappo committed Jan 18, 2024
1 parent 81df265 commit 9efdd24
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/**
* Base class for virtual thread implementations.
*/
sealed abstract class BaseVirtualThread extends Thread
abstract sealed class BaseVirtualThread extends Thread
permits VirtualThread, ThreadBuilders.BoundVirtualThread {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* @since 1.4
*/

public sealed abstract class ResolverConfiguration permits ResolverConfigurationImpl {
public abstract sealed class ResolverConfiguration permits ResolverConfigurationImpl {

private static final Object lock = new Object();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@ private int writeInternal(ByteBuffer src, long position) throws IOException {

// -- Memory-mapped buffers --

private sealed abstract static class Unmapper
private abstract static sealed class Unmapper
implements Runnable, UnmapperProxy
{
private final long address;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
* @since 1.5
*/

public sealed abstract class AbstractCalendar extends CalendarSystem
public abstract sealed class AbstractCalendar extends CalendarSystem
permits BaseCalendar {

// The constants assume no leap seconds support.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @since 1.5
*/

public sealed abstract class BaseCalendar extends AbstractCalendar
public abstract sealed class BaseCalendar extends AbstractCalendar
permits Gregorian, JulianCalendar, LocalGregorianCalendar {

public static final int JANUARY = 1;
Expand Down Expand Up @@ -141,7 +141,7 @@ public sealed abstract class BaseCalendar extends AbstractCalendar
744365, // 2039
};

public sealed abstract static class Date extends CalendarDate
public abstract static sealed class Date extends CalendarDate
permits Gregorian.Date, ImmutableGregorianDate, JulianCalendar.Date, LocalGregorianCalendar.Date {
protected Date() {
super();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
* @author Masayoshi Okutsu
* @since 1.5
*/
public sealed abstract class CalendarDate implements Cloneable
public abstract sealed class CalendarDate implements Cloneable
permits BaseCalendar.Date {
public static final int FIELD_UNDEFINED = Integer.MIN_VALUE;
public static final long TIME_UNDEFINED = Long.MIN_VALUE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
* @since 1.5
*/

public sealed abstract class CalendarSystem permits AbstractCalendar {
public abstract sealed class CalendarSystem permits AbstractCalendar {

/////////////////////// Calendar Factory Methods /////////////////////////

Expand Down

1 comment on commit 9efdd24

@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.