aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZeeshan Asghar <zeeshan.asghar@devfactory.com>2016-01-22 07:56:01 +0500
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-01-29 16:46:31 +0100
commit1fc88e490a8db848301e784d53d5170018b6d1e5 (patch)
tree0e378412784f3933b7e3e17b339af2fb323b00d4
parent555829f24cc59d67efa6c03f980141088e4f6db9 (diff)
downloadsonarqube-1fc88e490a8db848301e784d53d5170018b6d1e5.tar.gz
sonarqube-1fc88e490a8db848301e784d53d5170018b6d1e5.zip
squid:S2209 static members should be accessed statically
-rw-r--r--sonar-core/src/main/java/org/sonar/core/util/DefaultHttpDownloader.java2
-rw-r--r--sonar-db/src/main/java/org/sonar/db/component/ResourceDao.java14
2 files changed, 8 insertions, 8 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/util/DefaultHttpDownloader.java b/sonar-core/src/main/java/org/sonar/core/util/DefaultHttpDownloader.java
index ae04d6eee97..5f6f9820844 100644
--- a/sonar-core/src/main/java/org/sonar/core/util/DefaultHttpDownloader.java
+++ b/sonar-core/src/main/java/org/sonar/core/util/DefaultHttpDownloader.java
@@ -133,7 +133,7 @@ public class DefaultHttpDownloader extends HttpDownloader {
}
public String getProxySynthesis(URI uri) {
- return downloader.getProxySynthesis(uri);
+ return BaseHttpDownloader.getProxySynthesis(uri);
}
@Override
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);
}
}