-
Notifications
You must be signed in to change notification settings - Fork 482
Clean up code #679
Clean up code #679
Conversation
314f668 to
fe62578
Compare
ngrinder-controller/src/main/java/org/ngrinder/infra/config/WebMvcConfig.java
Outdated
Show resolved
Hide resolved
6d529b7 to
c504e72
Compare
ngrinder-controller/src/main/java/org/ngrinder/common/util/FileDownloadUtils.java
Show resolved
Hide resolved
| @RestController | ||
| @RequestMapping(value = "/perftest/api", consumes = APPLICATION_FORM_URLENCODED_VALUE) | ||
| @Deprecated | ||
| public class PerfTestFormTypeApiController extends PerfTestApiController { |
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.
@RequireArgsConstructor
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.
PerfTestFormTypeApiController is a child class from PerfTestApiController.
@RequireArgsConstructor can't call the parent constructor.
ref: https://stackoverflow.com/a/29771875/8074178
related issue: projectlombok/lombok#375
ngrinder-controller/src/main/java/org/ngrinder/perftest/service/PerfTestService.java
Outdated
Show resolved
Hide resolved
ngrinder-controller/src/main/java/org/ngrinder/perftest/service/PerfTestService.java
Outdated
Show resolved
Hide resolved
ngrinder-controller/src/main/java/org/ngrinder/perftest/service/PerfTestService.java
Outdated
Show resolved
Hide resolved
...ler/src/main/java/org/ngrinder/perftest/service/samplinglistener/MonitorCollectorPlugin.java
Outdated
Show resolved
Hide resolved
| if (dirEntry.getKind() == SVNNodeKind.DIR) { | ||
| script.setFileType(FileType.DIR); | ||
| } else { | ||
| script.getFileType(); |
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.
Check if this is necessary
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.
| outputStream = new ByteArrayOutputStream(); | ||
| SVNProperties fileProperty = new SVNProperties(); | ||
| // Get File. | ||
| repo.getFile(path, revision.getNumber(), fileProperty, outputStream); |
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.
make try start here
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.
Above try block enclose SVNException, If move the block to here, we should have nested try-catch.
ngrinder-controller/src/main/java/org/ngrinder/script/repository/FileEntryRepository.java
Outdated
Show resolved
Hide resolved
ngrinder-controller/src/test/java/org/ngrinder/agent/repository/AgentRepositoryTest.java
Show resolved
Hide resolved
a85df41 to
59aca99
Compare
a27f729 to
c85f089
Compare
e0d3380 to
ad07970
Compare
ad07970 to
8153da1
Compare
|
Thank you for your efforts. |
Clean up