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
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
606
        when(ControllerUtil.configureLDAPUser(eq("testuser1"),any(),any(),eq(token))).thenReturn(idapConfigureResponse);
607
        //when(ControllerUtil.updateMetadata(Mockito.any(),eq(token))).thenReturn(responseNoContent);
608
        when(ControllerUtil.updateMetadata(any(),eq(token))).thenAnswer(new Answer() {
609
            private int count = 0;
610
 
611
            public Object answer(InvocationOnMock invocation) {
612
                if (count++ == 1)
613
                    return responseNoContent;
614
 
615
                return response_404;
616
            }
tvaultapi/src/test/java/com/...ervice/SafesServiceTest.java MethodArgumentCouldBeFinal   (kritika/PMD Java)
Parameter 'invocation' is not assigned and could be declared final
Warning