This repository was archived by the owner on Aug 20, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Clean up build warnings #35
Closed
Closed
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
576b616
Swap annotation and visibility to match other code
TWiStErRob 68e4b95
Fix lint warnings in integration test
TWiStErRob 472480b
Fix Android Java annotation processor warning in integration test
TWiStErRob 6da8209
Specify Java compiler encoding explicitly to prevent using system def…
TWiStErRob 69d8b9e
Fix rawtypes warning in reflect-lint
TWiStErRob b795254
Fix rawtypes warnings in UnlinkedJustInTimeBinding
TWiStErRob 6327f67
Fix unchecked warnings in UnlinkedSetBinding by suppressing and expla…
TWiStErRob 5f9528b
Fix unchecked warnings in UnlinkedMapOfProviderBinding by using <?> w…
TWiStErRob 5bb0019
Fix unchecked warnings in UnlinkedMapOfValueBinding by suppression.
TWiStErRob 8580905
Extract generic method to isolate type-safe code
TWiStErRob 1b3687a
Extract generic method to isolate type-safe code
TWiStErRob 1efaa52
Enable javac lint
TWiStErRob File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,11 +13,10 @@ final class UnlinkedMapOfProviderBinding extends UnlinkedBinding { | |
| } | ||
|
|
||
| @Override | ||
| public LinkedBinding<Map<Object, Provider<Object>>> link(Linker linker, Scope scope) { | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is unfortunate. Not that I expect anyone to ever see these types, and they're erased anyway, but it at least forces a bit of safety into the method. Doing |
||
| Map<Object, Provider<Object>> mapOfProviders = new LinkedHashMap<>(entryBindings.size()); | ||
| public LinkedBinding<?> link(Linker linker, Scope scope) { | ||
| Map<Object, Provider<?>> mapOfProviders = new LinkedHashMap<>(entryBindings.size()); | ||
| for (Map.Entry<Object, Binding> entryBinding : entryBindings.entrySet()) { | ||
| LinkedBinding<Object> binding = | ||
| (LinkedBinding<Object>) entryBinding.getValue().link(linker, scope); | ||
| LinkedBinding<?> binding = entryBinding.getValue().link(linker, scope); | ||
| mapOfProviders.put(entryBinding.getKey(), binding); | ||
| } | ||
| return new LinkedInstanceBinding<>(mapOfProviders); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What triggers all of these? I'm less interested in the description since that can be Googled but more interested in what causes them and why it's safe to ignore. Similar to an
@Ignorefor a test. The 'processing' one has a good justification but not these last two.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All 3 are the warning messages, not explanation. I'll research and explain them in the context of this project.