Guice’s stack traces can get so verbose that they are very painful to read. Here’s an example:
1) No implementation for java.util.Set<com.mydomain.myapp.android.activities.catbrowser.generalizedbrowser.listview.helpers.databaseitem.itemmanipulators.ItemManipulator<com.mydomain.myapp.flash.Cat>> annotated with @com.google.inject.assistedinject.Assisted(value=) was bound.
while locating java.util.Set<com.mydomain.myapp.android.activities.catbrowser.generalizedbrowser.listview.helpers.databaseitem.itemmanipulators.ItemManipulator<com.mydomain.myapp.flash.Cat>> annotated with @com.google.inject.assistedinject.Assisted(value=)
…
If I could hide the classpath, it would look like:
1) No implementation for Set<ItemManipulator<Cat>> annotated with @Assisted(value=) was bound.
while locating Set<ItemManipulator<Cat>> annotated with @Assisted(value=)
Is there any way to configure Guice to do this?
So the answer is no.
If you take look at guice source code you will find
com.google.inject.internal.Errorsclass that is responsible for building error messages. In this class it is coded that theKeyis converting the following way:Next step is to take a look at
TypeLiteral#toStringmethod:Where
MoreTypes#typeToStringis a static method that cannot be configured