Warnings when using generics with 3.0
See original GitHub issueLike I stated in https://github.com/greenrobot/EventBus/issues/249 I get warnings when I use generics with the indexer. This itself wouldn’t be a problem, but Android Studio automatically switches to the code fragment where this happens, interrupting my current workflow which is somehow annoying.
The warning I get is like this (In the Gradle messages window):
Error:(196, 26) Note: Using upper bound type com.myapplication.event.IListEvent<T> for generic parameter
Would it be possible to degrade that warning so I get only notified about it, but without switching to the warning?
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
java - Compiler warnings when declaring Generic types
It means that the compiler can't check that you're using the collection in a type-safe manner, using generics. To get rid of the...
Read more >Non-generic Vs Generic Collection in Java - GeeksforGeeks
Generics are basically the errors appearing are compile-time than at run-time. there are certain advantages of generics over non-generic are as ...
Read more >4.1. Generic Types - Java in a Nutshell, 5th Edition [Book]
A generic type is defined using one or more type variables and has one or more methods that use a type variable as...
Read more >Programming With Java Generics - Angelika Langer
No unchecked warnings. Raw types lead to "unchecked" warning, which can be prevented by use of type arguments. No future deprecation. The Java...
Read more >What is wrong with Java's generics? [closed]
7 Answers 7 · compiler warnings for missing generic parameters that serve no purpose make the language pointlessly verbose, e.g public String getName(Class<?> ......
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
I made a pull request to include the nolog option and only log generics when verbose is activated 😃
Done, and rebased on current master