This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects

Fix pmd warnings

Closed Administrator requested to merge fix_pmd_warnings into development
@@ -146,7 +146,11 @@ public class GitlabService {
file =
gitLabApi
.getRepositoryFileApi()
.getFile(Long.valueOf(exercise.getProject().getProjectId()), filePath, exercise.getFile().getCommit_id());
.getFile(
Long.valueOf(exercise.getProject().getProjectId()),
exerciseId.extendPath(filePath),
exercise.getFile().getCommit_id()
);
return new ByteArrayInputStream(file.getDecodedContentAsBytes());
} catch (GitLabApiException e) {
log.warn(
@@ -168,7 +172,11 @@ public class GitlabService {
gitLabRepository
.getAdminGitLabApi()
.getRepositoryFileApi()
.getFile(Long.valueOf(exercise.getProject().getProjectId()), filePath, exercise.getFile().getCommit_id());
.getFile(
Long.valueOf(exercise.getProject().getProjectId()),
exerciseId.extendPath(filePath),
exercise.getFile().getCommit_id()
);
return new ByteArrayInputStream(file.getDecodedContentAsBytes());
}