Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
Try abstract classes before interfaces
  • Loading branch information
lucamolteni committed Aug 8, 2023
1 parent 111f425 commit a666be7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ public ObjectTypeConf getOrCreateObjectTypeConf(EntryPointId entrypoint, Object
return conf;
}

// Avoid secondary super cache invalidation by testing for abstract classes first
// Then interfaces
private Object getKey( Object object ) {
if (object instanceof RuleTerminalNodeLeftTuple) {
return ClassObjectType.Match_ObjectType.getClassType();
Expand Down

0 comments on commit a666be7

Please sign in to comment.