Skip to content

Commit 664e7db

Browse files
committed
refactor: use null-safe annotations where applicable
1 parent 4f5b756 commit 664e7db

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/com/github/lppedd/cc/angular2/Angular2CommitScopeProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Angular2CommitScopeProvider implements CommitScopeProvider {
3535
private static final Application APPLICATION = ApplicationManager.getApplication();
3636
private final Project project;
3737

38-
Angular2CommitScopeProvider(final Project project) {
38+
Angular2CommitScopeProvider(@NotNull final Project project) {
3939
this.project = project;
4040
}
4141

@@ -53,7 +53,7 @@ public ProviderPresentation getPresentation() {
5353

5454
@NotNull
5555
@Override
56-
public List<CommitScope> getCommitScopes(final String commitType) {
56+
public List<CommitScope> getCommitScopes(@Nullable final String commitType) {
5757
return "build".equals(commitType) ? SCOPES : findNgModules();
5858
}
5959

src/main/java/com/github/lppedd/cc/angular2/Angular2CommitTypeProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public ProviderPresentation getPresentation() {
4040

4141
@NotNull
4242
@Override
43-
public List<CommitType> getCommitTypes(final String prefix) {
43+
public List<CommitType> getCommitTypes(@Nullable final String prefix) {
4444
return TYPES;
4545
}
4646

0 commit comments

Comments
 (0)