Sailaja Polavarapu created RANGER-1313:
------------------------------------------
Summary: Fix issue found during coverity scan in one of the ranger
usersync unit tests.
Key: RANGER-1313
URL: https://issues.apache.org/jira/browse/RANGER-1313
Project: Ranger
Issue Type: Bug
Components: Ranger, usersync
Affects Versions: 0.6.2
Reporter: Sailaja Polavarapu
Priority: Minor
Fix For: 0.7.0
** CID 155460: FindBugs: Dodgy code
(FB.URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD)
/ugsync/src/test/java/org/apache/ranger/usergroupsync/TestRegEx.java:
32 in ()
__________________________________________________________________________
______________________________
*** CID 155460: FindBugs: Dodgy code
(FB.URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD)
/ugsync/src/test/java/org/apache/ranger/usergroupsync/TestRegEx.java:
32 in ()
26
27 import org.junit.Before;
28 import org.junit.Test;
29
30 public class TestRegEx {
31 protected String userNameBaseProperty =
"ranger.usersync.mapping.username.regex";
>>> CID 155460: FindBugs: Dodgy code
(FB.URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD)
>>> Unread public/protected field:
org.apache.ranger.usergroupsync.TestRegEx.groupNameBaseProperty.
32 protected String groupNameBaseProperty =
"ranger.usersync.mapping.groupname.regex";
33 protected RegEx userNameRegEx = null;
34 protected RegEx groupNameRegEx = null;
35 List<String> userRegexPatterns = null;
36 List<String> groupRegexPatterns = null;
37
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)