Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding support for the SuppressWarnings annotation to remove missing …
…contructor warning.
- Loading branch information
Showing
2 changed files
with
47 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
17 changes: 17 additions & 0 deletions
17
toothpick-sample/src/main/java/toothpick/sample/SecondEntryPoint.java
This file contains 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package toothpick.sample; | ||
|
||
import javax.inject.Inject; | ||
import toothpick.Scope; | ||
import toothpick.Toothpick; | ||
|
||
@SuppressWarnings("Injectable") | ||
public class SecondEntryPoint { | ||
|
||
@Inject Computer computer; | ||
@Inject Computer2 computer2; | ||
|
||
private SecondEntryPoint() { | ||
Scope scope = Toothpick.openScope("SecondEntryPoint"); | ||
Toothpick.inject(this, scope); | ||
} | ||
} |