ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From v..@apache.org
Subject incubator-ranger git commit: Ranger-767: Fixing a coverity issue CID 133255: FindBugs: Bad practice (FB.UI_INHERITANCE_UNSAFE_GETRESOURCE)
Date Wed, 09 Dec 2015 02:41:53 GMT
Repository: incubator-ranger
Updated Branches:
  refs/heads/master 99121ecc5 -> b16ac8a3a


Ranger-767: Fixing a coverity issue CID 133255: FindBugs: Bad practice (FB.UI_INHERITANCE_UNSAFE_GETRESOURCE)

Signed-off-by: Velmurugan Periasamy <vel@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/b16ac8a3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/b16ac8a3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/b16ac8a3

Branch: refs/heads/master
Commit: b16ac8a3ad091fde822d1227ce077b2e12b26adf
Parents: 99121ec
Author: Sailaja Polavarapu <spolavarapu@hortonworks.com>
Authored: Tue Dec 8 10:48:14 2015 -0800
Committer: Velmurugan Periasamy <vel@apache.org>
Committed: Tue Dec 8 21:41:36 2015 -0500

----------------------------------------------------------------------
 .../ranger/unixusersync/process/PolicyMgrUserGroupBuilder.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/b16ac8a3/ugsync/src/main/java/org/apache/ranger/unixusersync/process/PolicyMgrUserGroupBuilder.java
----------------------------------------------------------------------
diff --git a/ugsync/src/main/java/org/apache/ranger/unixusersync/process/PolicyMgrUserGroupBuilder.java
b/ugsync/src/main/java/org/apache/ranger/unixusersync/process/PolicyMgrUserGroupBuilder.java
index 78e3e72..3e4deae 100644
--- a/ugsync/src/main/java/org/apache/ranger/unixusersync/process/PolicyMgrUserGroupBuilder.java
+++ b/ugsync/src/main/java/org/apache/ranger/unixusersync/process/PolicyMgrUserGroupBuilder.java
@@ -778,7 +778,7 @@ public class PolicyMgrUserGroupBuilder implements UserGroupSink {
 		if (f.exists()) {
 			ret = new FileInputStream(f);
 		} else {
-			ret = getClass().getResourceAsStream(path);
+			ret = PolicyMgrUserGroupBuilder.class.getResourceAsStream(path);
 			
 			if (ret == null) {
 				if (! path.startsWith("/")) {


Mime
View raw message