Skip to content

Commit e84e494

Browse files
joaodinissfclaude
andcommitted
fix: add explicit cast to satisfy PMD CollectionTypeMismatch rule
The cast clarifies that ProxyModelAssociationsAdapter is an Adapter through its inheritance chain. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9498701 commit e84e494

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

com.avaloq.tools.ddk.xtext/src/com/avaloq/tools/ddk/xtext/resource/persistence/ProxyModelAssociationsAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ private void ensureAssociationsLoaded() {
6767
return;
6868
}
6969
synchronized (resource) {
70-
if (resource.eAdapters().remove(this)) {
70+
if (resource.eAdapters().remove((org.eclipse.emf.common.notify.Adapter) this)) {
7171
DirectLinkingResourceStorageLoadable loadable = (DirectLinkingResourceStorageLoadable) ((DirectLinkingResourceStorageFacade) resource.getResourceStorageFacade()).getOrCreateResourceStorageLoadable(resource);
7272
try {
7373
// the associations are mappings from AST model elements to inferred model elements (and back) so we cannot skip loading the model.

0 commit comments

Comments
 (0)