
Add missed assignments
@91e3e7c406b0d680e4b05c8b10fb542d59983b0c
--- app/controllers/CodeHistoryApp.java
+++ app/controllers/CodeHistoryApp.java
... | ... | @@ -98,7 +98,7 @@ |
98 | 98 |
Project project = Project.findByOwnerAndProjectName(ownerName, projectName); |
99 | 99 |
PlayRepository repository = RepositoryService.getRepository(project); |
100 | 100 |
|
101 |
- Commit commit = null; |
|
101 |
+ Commit commit; |
|
102 | 102 |
|
103 | 103 |
try { |
104 | 104 |
commit = repository.getCommit(commitId); |
--- app/controllers/IssueApp.java
+++ app/controllers/IssueApp.java
... | ... | @@ -312,7 +312,7 @@ |
312 | 312 |
if(hasAssignee(issue)) { |
313 | 313 |
oldAssignee = issue.assignee.user; |
314 | 314 |
} |
315 |
- Assignee newAssignee = null; |
|
315 |
+ Assignee newAssignee; |
|
316 | 316 |
if (issueMassUpdate.assignee.isAnonymous()) { |
317 | 317 |
newAssignee = null; |
318 | 318 |
} else { |
--- app/models/resource/Resource.java
+++ app/models/resource/Resource.java
... | ... | @@ -258,7 +258,7 @@ |
258 | 258 |
return null; |
259 | 259 |
} |
260 | 260 |
|
261 |
- ResourceType resourceType = null; |
|
261 |
+ ResourceType resourceType; |
|
262 | 262 |
|
263 | 263 |
try { |
264 | 264 |
resourceType = ResourceType.getValue(segments[0]); |
--- app/models/support/SearchCondition.java
+++ app/models/support/SearchCondition.java
... | ... | @@ -256,7 +256,7 @@ |
256 | 256 |
Junction<Issue> junction = el.disjunction(); |
257 | 257 |
junction.icontains("title", filter) |
258 | 258 |
.icontains("body", filter); |
259 |
- List<Object> ids = null; |
|
259 |
+ List<Object> ids; |
|
260 | 260 |
if( project == null){ |
261 | 261 |
ids = Issue.finder.where() |
262 | 262 |
.icontains("comments.contents", filter).findIds(); |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?