File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed
truffle/src/com.oracle.truffle.api.object/src/com/oracle/truffle/api/object Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2013, 2024 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2013, 2025 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* The Universal Permissive License (UPL), Version 1.0
54
54
* @see DynamicObject
55
55
* @since 0.8 or earlier
56
56
*/
57
- public abstract class Location {
57
+ public abstract sealed class Location permits LocationImpl {
58
58
/**
59
59
* Constructor for subclasses.
60
60
*
Original file line number Diff line number Diff line change 48
48
49
49
/** @since 0.17 or earlier */
50
50
@ SuppressWarnings ("deprecation" )
51
- abstract class LocationImpl extends Location {
51
+ abstract non-sealed class LocationImpl extends Location {
52
52
/**
53
53
* @since 0.17 or earlier
54
54
*/
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2012, 2024 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2012, 2025 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* The Universal Permissive License (UPL), Version 1.0
46
46
*
47
47
* @since 0.8 or earlier
48
48
*/
49
- public abstract class Property {
49
+ public abstract sealed class Property permits PropertyImpl {
50
50
/**
51
51
* Constructor for subclasses.
52
52
*
Original file line number Diff line number Diff line change 78
78
* @see Property
79
79
* @since 0.8 or earlier
80
80
*/
81
- public abstract class Shape {
81
+ public abstract sealed class Shape permits ShapeImpl {
82
82
static final int OBJECT_FLAGS_MASK = 0x0000_ffff ;
83
83
static final int OBJECT_FLAGS_SHIFT = 0 ;
84
84
static final int OBJECT_SHARED = 1 << 16 ;
Original file line number Diff line number Diff line change 80
80
* @since 0.17 or earlier
81
81
*/
82
82
@ SuppressWarnings ("deprecation" )
83
- abstract class ShapeImpl extends Shape {
83
+ abstract sealed class ShapeImpl extends Shape permits ShapeBasic , ShapeExt {
84
84
/** Shape and object flags. */
85
85
protected final int flags ;
86
86
You can’t perform that action at this time.
0 commit comments