Filter by:
File Violation Severity
tvaultapi/src/test/java/com/...ervice/SafesServiceTest.java MethodArgumentCouldBeFinal   (kritika/PMD Java)
Parameter 'invocation' is not assigned and could be declared final
Warning
tvaultapi/src/test/java/com/...ervice/SafesServiceTest.java MethodArgumentCouldBeFinal   (kritika/PMD Java)
Parameter 'invocation' is not assigned and could be declared final
Warning
tvaultapi/src/test/java/com/...ervice/SafesServiceTest.java MethodArgumentCouldBeFinal   (kritika/PMD Java)
Parameter 'invocation' is not assigned and could be declared final
Warning
tvaultapi/src/test/java/com/...ervice/SafesServiceTest.java MethodArgumentCouldBeFinal   (kritika/PMD Java)
Parameter 'invocation' is not assigned and could be declared final
Warning
tvaultapi/src/test/java/com/...ervice/SafesServiceTest.java MethodArgumentCouldBeFinal   (kritika/PMD Java)
Parameter 'expectedBody' is not assigned and could be declared final
Warning
tvaultapi/src/main/java/com/...t/api/model/AWSIAMLogin.java MethodArgumentCouldBeFinal   (kritika/PMD Java)
Parameter 'role' is not assigned and could be declared final
Warning
tvaultapi/src/main/java/com/...t/api/model/AWSIAMLogin.java MethodArgumentCouldBeFinal   (kritika/PMD Java)
Parameter 'iam_request_headers' is not assigned and could be declared final
Warning
tvaultapi/src/main/java/com/...t/api/model/AWSIAMLogin.java MethodArgumentCouldBeFinal   (kritika/PMD Java)
Parameter 'iam_request_body' is not assigned and could be declared final
Warning
tvaultapi/src/main/java/com/...t/api/model/AWSIAMLogin.java MethodArgumentCouldBeFinal   (kritika/PMD Java)
Parameter 'iam_request_url' is not assigned and could be declared final
Warning
tvaultapi/src/main/java/com/...t/api/model/AWSIAMLogin.java MethodArgumentCouldBeFinal   (kritika/PMD Java)
Parameter 'iam_http_request_method' is not assigned and could be declared final
Warning
tvaultapi/src/test/java/com/...vice/AWSAuthServiceTest.java MethodArgumentCouldBeFinal   (kritika/PMD Java)
Parameter 'expectedBody' is not assigned and could be declared final
Warning
tvaultapi/src/test/java/com/...vice/AWSAuthServiceTest.java MethodArgumentCouldBeFinal   (kritika/PMD Java)
Parameter 'status' is not assigned and could be declared final
Warning
tvaultapi/src/test/java/com/...vice/AWSAuthServiceTest.java MethodArgumentCouldBeFinal   (kritika/PMD Java)
Parameter 'success' is not assigned and could be declared final
Warning
tvaultapi/src/test/java/com/...vice/AWSAuthServiceTest.java MethodArgumentCouldBeFinal   (kritika/PMD Java)
Parameter 'isAdmin' is not assigned and could be declared final
Warning
tvaultapi/src/main/java/com/...t/api/model/AWSAuthType.java MethodArgumentCouldBeFinal   (kritika/PMD Java)
Parameter 'auth_type' is not assigned and could be declared final
Warning
tvaultapi/src/test/java/com/...ervice/SafesServiceTest.java MethodArgumentCouldBeFinal   (kritika/PMD Java)
Parameter 'status' is not assigned and could be declared final
Warning
93
        currentMap.put("apiurl", "http://localhost:8080/vault/v2/sdb");
94
        currentMap.put("user", "");
95
        ThreadLocalContext.setCurrentMap(currentMap);
96
    }
97
 
98
    Response getMockResponse(HttpStatus status, boolean success, String expectedBody) {
99
        Response response = new Response();
100
        response.setHttpstatus(status);
101
        response.setSuccess(success);
102
        if (expectedBody!="") {
103
            response.setResponse(expectedBody);
tvaultapi/src/test/java/com/...ervice/SafesServiceTest.java MethodArgumentCouldBeFinal   (kritika/PMD Java)
Parameter 'success' is not assigned and could be declared final
Warning
tvaultapi/src/test/java/com/...ervice/SafesServiceTest.java MethodArgumentCouldBeFinal   (kritika/PMD Java)
Parameter 'isAdmin' is not assigned and could be declared final
Warning
tvaultapi/src/test/java/com/...ervice/SafesServiceTest.java MethodArgumentCouldBeFinal   (kritika/PMD Java)
Parameter 'invocation' is not assigned and could be declared final
Warning
tvaultapi/src/test/java/com/...ervice/SafesServiceTest.java MethodArgumentCouldBeFinal   (kritika/PMD Java)
Parameter 'invocation' is not assigned and could be declared final
Warning