/**
* Describes order of projects.
- * Used by sonar-runner 1.x. Gradle 1.0 already uses {#link org.sonar.api.batch.bootstrap.ProjectReactor}.
+ * Used by sonar-runner 1.x. Gradle 1.0 already uses {@link org.sonar.api.batch.bootstrap.ProjectReactor}.
*
* @since 2.6
+ * @deprecated replaced by {@link org.sonar.api.batch.bootstrap.ProjectReactor} in version 2.9
*/
@Deprecated
public class Reactor {
}
public SnapshotDto getLastSnapshotByResourceId(long resourceId, SqlSession session) {
- return session.getMapper(ResourceMapper.class).selectLastSnapshotByResourceId(resourceId);
- }
+ return session.getMapper(ResourceMapper.class).selectLastSnapshotByResourceId(resourceId);
+ }
public List<ResourceDto> getDescendantProjects(long projectId) {
SqlSession session = mybatis.openSession();
List<Field> fields = FieldUtils2.getFields(check.getClass(), true);
for (Field field : fields) {
RuleProperty propertyAnnotation = field.getAnnotation(RuleProperty.class);
- if (propertyAnnotation != null) {
- if (StringUtils.equals(key, field.getName()) || StringUtils.equals(key, propertyAnnotation.key())) {
- return field;
- }
+ if (propertyAnnotation != null && (StringUtils.equals(key, field.getName()) || StringUtils.equals(key, propertyAnnotation.key()))) {
+ return field;
}
}
return null;