diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-03-30 16:05:32 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-04-02 17:28:02 +0200 |
commit | f9b3afd741501b2dd5a38f9d721fc68ec628e71e (patch) | |
tree | cf5f401238a60e829f07ee2c53a5631e180c9f0e | |
parent | a4eb779ebddbf0d71b8965a8a56b5f08a21bd214 (diff) | |
download | sonarqube-f9b3afd741501b2dd5a38f9d721fc68ec628e71e.tar.gz sonarqube-f9b3afd741501b2dd5a38f9d721fc68ec628e71e.zip |
Replace usage of deprecated constants
-rw-r--r-- | plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/security/ApplyProjectRolesDecorator.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/security/ApplyProjectRolesDecorator.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/security/ApplyProjectRolesDecorator.java index 2ad516a87ea..b6fdab34637 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/security/ApplyProjectRolesDecorator.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/security/ApplyProjectRolesDecorator.java @@ -23,6 +23,7 @@ import org.sonar.api.batch.Decorator; import org.sonar.api.batch.DecoratorContext; import org.sonar.api.database.DatabaseSession; import org.sonar.api.resources.Project; +import org.sonar.api.resources.Qualifiers; import org.sonar.api.resources.Resource; public class ApplyProjectRolesDecorator implements Decorator { @@ -57,9 +58,9 @@ public class ApplyProjectRolesDecorator implements Decorator { } private boolean isProject(Resource resource) { - if (Resource.QUALIFIER_PROJECT.equals(resource.getQualifier()) || - Resource.QUALIFIER_VIEW.equals(resource.getQualifier()) || - Resource.QUALIFIER_SUBVIEW.equals(resource.getQualifier())) { + if (Qualifiers.PROJECT.equals(resource.getQualifier()) || + Qualifiers.VIEW.equals(resource.getQualifier()) || + Qualifiers.SUBVIEW.equals(resource.getQualifier())) { return resource instanceof Project; } return false; |