Browse Source
Prior to this commit, if infrastructure code working directly with an instance of DefaultGenerationContext invoked withName() on that instance, the new GenerationContext had to be cast from GenerationContext to DefaultGenerationContext in order for the infrastructure to continue working with the DefaultGenerationContext API -- for example, the writeGeneratedContent() method which is not defined in the GenerationContext API. This commit makes use of a covariant return type by declaring that DefaultGenerationContext.withName() returns a DefaultGenerationContext.pull/28958/head
Sam Brannen
2 years ago
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue