Comments (4)
From dsallings on June 06, 2007 01:11:14
The attached patch against 335 cleans all but two warnings in my eclipse
configuration. The two warnings are actually SuppressWarnings annotations for tokens
eclipse doesn't support.
Note that I did add some SuppressWarnings, but tried to keep them localized to
variable definitions. That meant I'd take a return with a cast and save it to a
variable first so I could suppress the warnings when I couldn't actually fix the
problems.
I added comments for the suppressions I added except where they were really obvious
(i.e. unused in tests).
I removed a variable from InjectorImpl that was completely unused. I can rework that
to suppress the unused, but it's otherwise dead code.
All the tests still pass, but I hope nobody takes my word for it.
Attachment: gist
guice-warning-cleanup-335.diff
from guice.
From kevinb9n on June 06, 2007 07:40:01
I'm speechless! Thanks!
from guice.
From dsallings on August 08, 2007 19:19:19
I'm tracking this in hg with mq here: http://hg.west.spy.net/hg/hacks/guice/
Attachment: gist
guice-warning-cleanup-345.diff
from guice.
From crazyboblee on September 09, 2007 13:22:43
Thanks for the help, dsallings. I basically rewrote InjectorImpl to be
binding-oriented rather than InternalFactory oriented, and it made the typing a lot
easier to reason about.
Status: Fixed
from guice.
Related Issues (20)
- Deadlock in multi-threading enviroment (Guice 5.1)
- enable @Inject for records HOT 4
- InternalProvisionException.errorInUserCode discards important context about user errors HOT 1
- Annotations @Provides and @Singleton do not work together HOT 2
- HiddenClassDefiner incorrectly assumes Unsafe.staticFieldBase(Field) returns a real Object HOT 8
- Bob Lee,God bless You
- Feature Request: MicroProfile-config integration: Allow injecting annotations with jakarta.inject.Qualifier HOT 12
- where are the installation instructions? HOT 4
- java.lang.ClassCastException: class com.google.inject.servlet.GuiceFilter cannot be cast to class jakarta.servlet.Filter (com.google.inject.servlet.GuiceFilter is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @e383572; jakarta.servlet.Filter is in unnamed module of loader java.net.URLClassLoader @2ef1e4fa) HOT 1
- Changed behaviour in Guice 7 HOT 3
- Struts 6.x.x not working with Guice HOT 9
- Possible leak using Guice HOT 5
- Performance Issue in getJustInTimeBinding Method HOT 1
- Misleading exception message for nested Guice injector failure
- 8 Flaky tests in the module extensions/throwingproviders
- Request/Question: Provide non-jarjar'd builds
- Guice AOP is not compatible with Kotlin Coroutines HOT 2
- Enable to define a custom "@Inject" marker (ie add some extension point for reflection doing getAnnotation/isAnnotationPresent on this marker)
- Implement a functionality similar to Spring Boot’s fully automatic configuration dependency injection
- Replace Guava with standard Java (where possible) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from guice.