File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
core/esmf-aspect-meta-model-java/src/main/java/org/eclipse/esmf/metamodel/loader Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 60
60
public class AspectModelLoader {
61
61
private static final Logger LOG = LoggerFactory .getLogger ( AspectModelLoader .class );
62
62
63
- private static final Set <KnownVersion > supportedVersions = ImmutableSet .of (
63
+ private static final Set <KnownVersion > SUPPORTED_VERSIONS = ImmutableSet .of (
64
64
KnownVersion .SAMM_1_0_0 ,
65
- KnownVersion .SAMM_2_0_0
65
+ KnownVersion .SAMM_2_0_0 ,
66
+ KnownVersion .SAMM_2_1_0
66
67
);
67
68
68
69
private static final MigratorService migratorService = new MigratorService ();
@@ -115,7 +116,7 @@ public static Try<List<ModelNamespace>> getNamespaces( final VersionedModel vers
115
116
*/
116
117
public static Try <List <ModelElement >> getElements ( final VersionedModel versionedModel ) {
117
118
final Optional <KnownVersion > metaModelVersion = KnownVersion .fromVersionString ( versionedModel .getMetaModelVersion ().toString () );
118
- if ( metaModelVersion .isEmpty () || !supportedVersions .contains ( metaModelVersion .get () ) ) {
119
+ if ( metaModelVersion .isEmpty () || !SUPPORTED_VERSIONS .contains ( metaModelVersion .get () ) ) {
119
120
return Try .failure ( new UnsupportedVersionException ( versionedModel .getMetaModelVersion () ) );
120
121
}
121
122
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ public int getHashCode( final LiteralLabel lit ) {
83
83
84
84
@ Override
85
85
public Class <Curie > getJavaClass () {
86
- return ( Class < Curie >) Curie .class ;
86
+ return Curie .class ;
87
87
}
88
88
89
89
@ Override
You can’t perform that action at this time.
0 commit comments