question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warnings when using generics with 3.0

See original GitHub issue

Like 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:open
  • Created 8 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
bishibooshcommented, Aug 26, 2016

I made a pull request to include the nolog option and only log generics when verbose is activated 😃

1reaction
bishibooshcommented, Sep 7, 2021

Done, and rebased on current master

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found