Reference to JetBrains is added when overriding method
See original GitHub issueDo this in VS:
- Create a class that extends DbContext
- Inside the class, type “override” and from the selection list that appears after you press space select “OnModelCreating” and let VS do its magic of adding the method and all the necessary usings.
Now look at the using statements. Notice that “using JetBrains.Annotations” was added. The overriden method looks like:
protected override void OnModelCreating([NotNullAttribute]ModelBuilder builder)
{
base.OnModelCreating(builder);
}
There is a compilation error saying that NotNullAttribute is not accessible due to its protection level.
Issue Analytics
- State:
- Created 9 years ago
- Comments:12 (11 by maintainers)
Top Results From Across the Web
Override methods of a superclass - IntelliJ IDEA
On the Code menu, click Override methods Ctrl 0O . · Select the methods to override (hold the Shift or Ctrl key to...
Read more >Reference to JetBrains is added when overriding method #462
Do this in VS: Create a class that extends DbContext Inside the class, type "override" and from the selection list that appears after...
Read more >How to make autocomplete show methods suggestions for ...
Right click in your editor pane for class A , go to 'Generate...' -> 'Override Methods...'. You'll then be presented with a list...
Read more >An Introduction to Refactoring with IntelliJ IDEA
As for parameters, it can rename them in the class hierarchy in case of overridden methods. Those options are available by hitting Shift...
Read more >Android Studio Bumble Bee Essentials - Java Edition: ...
LifecycleRegistry; import org.jetbrains.annotations. ... instance initialized with a reference to itself, and a getLifecycle() method congured to return the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Duplicate of dotnet/roslyn#5646
@BukeMan please file a bug at https://github.com/dotnet/roslyn/issues with detailed steps to reproduce, including the version numbers. Thanks!