diff options
author | Zeeshan Asghar <zeeshan.asghar@devfactory.com> | 2016-01-22 07:56:01 +0500 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2016-01-29 16:46:31 +0100 |
commit | 1fc88e490a8db848301e784d53d5170018b6d1e5 (patch) | |
tree | 0e378412784f3933b7e3e17b339af2fb323b00d4 /sonar-db | |
parent | 555829f24cc59d67efa6c03f980141088e4f6db9 (diff) | |
download | sonarqube-1fc88e490a8db848301e784d53d5170018b6d1e5.tar.gz sonarqube-1fc88e490a8db848301e784d53d5170018b6d1e5.zip |
squid:S2209 static members should be accessed statically
Diffstat (limited to 'sonar-db')
-rw-r--r-- | sonar-db/src/main/java/org/sonar/db/component/ResourceDao.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sonar-db/src/main/java/org/sonar/db/component/ResourceDao.java b/sonar-db/src/main/java/org/sonar/db/component/ResourceDao.java index e05678a6d3c..c68302f8a4a 100644 --- a/sonar-db/src/main/java/org/sonar/db/component/ResourceDao.java +++ b/sonar-db/src/main/java/org/sonar/db/component/ResourceDao.java @@ -51,7 +51,7 @@ public class ResourceDao extends AbstractDao { try { return selectResource(query, session); } finally { - myBatis().closeQuietly(session); + MyBatis.closeQuietly(session); } } @@ -74,7 +74,7 @@ public class ResourceDao extends AbstractDao { try { return session.getMapper(ResourceMapper.class).selectResourceByUuid(componentUuid); } finally { - myBatis().closeQuietly(session); + MyBatis.closeQuietly(session); } } @@ -128,7 +128,7 @@ public class ResourceDao extends AbstractDao { try { return getRootProjectByComponentKey(session, componentKey); } finally { - myBatis().closeQuietly(session); + MyBatis.closeQuietly(session); } } @@ -154,7 +154,7 @@ public class ResourceDao extends AbstractDao { try { return toComponents(session.getMapper(ResourceMapper.class).selectProjectsByQualifiers(qualifiers)); } finally { - myBatis().closeQuietly(session); + MyBatis.closeQuietly(session); } } @@ -169,7 +169,7 @@ public class ResourceDao extends AbstractDao { try { return toComponents(session.getMapper(ResourceMapper.class).selectProjectsIncludingNotCompletedOnesByQualifiers(qualifiers)); } finally { - myBatis().closeQuietly(session); + MyBatis.closeQuietly(session); } } @@ -187,7 +187,7 @@ public class ResourceDao extends AbstractDao { try { return toComponents(session.getMapper(ResourceMapper.class).selectGhostsProjects(qualifiers)); } finally { - myBatis().closeQuietly(session); + MyBatis.closeQuietly(session); } } @@ -202,7 +202,7 @@ public class ResourceDao extends AbstractDao { try { return session.getMapper(ResourceMapper.class).selectProvisionedProjects(qualifiers); } finally { - myBatis().closeQuietly(session); + MyBatis.closeQuietly(session); } } |