Commit 0ba91ec 1 parent 77633e6 commit 0ba91ec Copy full SHA for 0ba91ec
File tree 2 files changed +16
-7
lines changed
core/metamodel/src/main/java/org/apache/causeway/core/metamodel/object
2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -407,7 +407,7 @@ static ManagedObject unspecified() {
407
407
* @see ManagedObject.Specialization.PojoPolicy#NO_POJO
408
408
*/
409
409
static ManagedObject empty (final @ NonNull ObjectSpecification spec ) {
410
- return new _ManagedObjectEmpty (spec );
410
+ return new ManagedObjectEmpty (spec );
411
411
}
412
412
/**
413
413
* VALUE
Original file line number Diff line number Diff line change 18
18
*/
19
19
package org .apache .causeway .core .metamodel .object ;
20
20
21
+ import org .jspecify .annotations .NonNull ;
22
+
21
23
import org .apache .causeway .core .metamodel .spec .ObjectSpecification ;
22
24
23
25
/**
24
26
* (package private) specialization corresponding to {@link Specialization#EMPTY}
25
27
* @see ManagedObject.Specialization#EMPTY
26
28
*/
27
- final class _ManagedObjectEmpty
28
- extends _ManagedObjectSpecified
29
- implements Bookmarkable .NoBookmark {
29
+ record ManagedObjectEmpty (
30
+ @ NonNull ObjectSpecification objSpec )
31
+ implements ManagedObject , Bookmarkable .NoBookmark {
30
32
31
- _ManagedObjectEmpty (
32
- final ObjectSpecification spec ) {
33
- super ( ManagedObject .Specialization .EMPTY , spec ) ;
33
+ @ Override
34
+ public Specialization specialization ( ) {
35
+ return ManagedObject .Specialization .EMPTY ;
34
36
}
35
37
36
38
@ Override
@@ -43,4 +45,11 @@ public String getTitle() {
43
45
return "empty " + objSpec ().logicalTypeName ();
44
46
}
45
47
48
+ // -- HELPER
49
+
50
+ @ Override
51
+ public <T > T assertCompliance (@ NonNull final T pojo ) {
52
+ return null ; // no-op
53
+ }
54
+
46
55
}
You can’t perform that action at this time.
0 commit comments