@@ -27,7 +27,7 @@ import org.sonar.api.web.DashboardTemplate; | |||
/** | |||
* Time Machine dashboard for Sonar | |||
* | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public final class TimeMachineDashboard extends DashboardTemplate { | |||
@@ -30,7 +30,7 @@ import org.sonar.api.resources.Resource; | |||
import org.sonar.api.resources.Scopes; | |||
/** | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public class FileComplexityDistributionDecorator implements Decorator { | |||
@@ -71,7 +71,7 @@ public class RuleI18nManager implements ServerComponent { | |||
/* | |||
* Method used to ensure backward compatibility for language plugins that store HTML rule description files in the former | |||
* location (which was used prior to Sonar 2.15). | |||
* location (which was used prior to Sonar 3.0). | |||
* | |||
* See http://jira.codehaus.org/browse/SONAR-3319 | |||
*/ |
@@ -28,7 +28,7 @@ import java.util.Collections; | |||
import java.util.List; | |||
/** | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public class DatabaseVersion implements BatchComponent, ServerComponent { | |||
@@ -21,7 +21,7 @@ package org.sonar.core.persistence; | |||
/** | |||
* Maps the table SCHEMA_MIGRATIONS that is fed by Ruby on Rails Migrations | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public class SchemaMigrationDto { | |||
private String version;//NOSONAR this field is assigned by MyBatis |
@@ -29,12 +29,12 @@ public interface ResourceMapper { | |||
List<ResourceDto> selectDescendantProjects(long rootProjectId); | |||
/** | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
List<ResourceDto> selectResources(ResourceQuery query); | |||
/** | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
List<Long> selectResourceIds(ResourceQuery query); | |||
} |
@@ -20,7 +20,7 @@ | |||
package org.sonar.core.resource; | |||
/** | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public final class ResourceQuery { | |||
private String[] qualifiers = null; |
@@ -25,7 +25,7 @@ import org.sonar.api.ServerComponent; | |||
import org.sonar.core.persistence.MyBatis; | |||
/** | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public class AuthorDao implements BatchComponent, ServerComponent { | |||
@@ -22,7 +22,7 @@ package org.sonar.core.user; | |||
import java.util.Date; | |||
/** | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public final class AuthorDto { | |||
@@ -20,7 +20,7 @@ | |||
package org.sonar.core.user; | |||
/** | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public interface AuthorMapper { | |||
@@ -28,7 +28,7 @@ package org.sonar.api; | |||
public interface CoreProperties { | |||
/** | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
String ENCRYPTION_SECRET_KEY_PATH = "sonar.secretKeyPath"; | |||
@@ -78,14 +78,14 @@ public @interface Property { | |||
boolean global() default true; | |||
/** | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
PropertyType type() default PropertyType.STRING; | |||
/** | |||
* Options for *_LIST types | |||
* | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
String[] options() default {}; | |||
@@ -20,7 +20,7 @@ | |||
package org.sonar.api; | |||
/** | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public enum PropertyType { | |||
/** |
@@ -27,7 +27,7 @@ import java.util.regex.Matcher; | |||
import java.util.regex.Pattern; | |||
/** | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public final class Encryption { | |||
@@ -30,7 +30,7 @@ import javax.annotation.Nullable; | |||
* <li>changes done programmatically on the component org.sonar.api.config.Settings</li> | |||
* </ul> | |||
* | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public abstract class GlobalPropertyChangeHandler implements ServerExtension { | |||
@@ -38,7 +38,7 @@ import java.util.Map; | |||
* SonarSource license. This class aims to extract metadata but not to validate or - of course - | |||
* to generate license | |||
* | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public final class License { | |||
private String product; |
@@ -28,7 +28,7 @@ import org.sonar.api.PropertyType; | |||
import javax.annotation.Nullable; | |||
/** | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public final class PropertyDefinition { | |||
@@ -24,7 +24,7 @@ package org.sonar.api.measures; | |||
* Compute complexity by 'X', where 'X' can be any metric, like "file" for instance. | |||
* | |||
* @since 2.1 | |||
* @deprecated since 2.15. Use {@link AverageFormula} instead. | |||
* @deprecated since 3.0. Use {@link AverageFormula} instead. | |||
*/ | |||
@Deprecated | |||
public class AverageComplexityFormula extends AverageFormula { |
@@ -30,7 +30,7 @@ import java.util.List; | |||
* <p/> | |||
* For example: to compute the metric "complexity by file", the main metric (A) is "complexity" and the other metric (B) is "file". | |||
* | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public class AverageFormula implements Formula { | |||
@@ -184,12 +184,12 @@ public final class CoreMetrics { | |||
.create(); | |||
/** | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public static final String PROJECTS_KEY = "projects"; | |||
/** | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public static final Metric PROJECTS = new Metric.Builder(PROJECTS_KEY, "Projects", Metric.ValueType.INT) | |||
.setDescription("Number of projects") | |||
@@ -328,13 +328,13 @@ public final class CoreMetrics { | |||
.create(); | |||
/** | |||
* @deprecated in 2.15 - see SONAR-3289 | |||
* @deprecated in 3.0 - see SONAR-3289 | |||
*/ | |||
@Deprecated | |||
public static final String CLASS_COMPLEXITY_DISTRIBUTION_KEY = "class_complexity_distribution"; | |||
/** | |||
* @deprecated in 2.15 - see SONAR-3289 | |||
* @deprecated in 3.0 - see SONAR-3289 | |||
*/ | |||
@Deprecated | |||
public static final Metric CLASS_COMPLEXITY_DISTRIBUTION = new Metric.Builder(CLASS_COMPLEXITY_DISTRIBUTION_KEY, "Classes distribution /complexity", Metric.ValueType.DISTRIB) |
@@ -32,7 +32,7 @@ import com.google.common.collect.Maps; | |||
/** | |||
* <p>Experimental extension to declare types of resources.</p> | |||
* <p> | |||
* Since 2.15, ResourceType object can declare properties that give information about the capabilities of the | |||
* Since 3.0, ResourceType object can declare properties that give information about the capabilities of the | |||
* resource type. Those properties may be used, of instance, to adapt the Web UI according to the type of | |||
* the resource being displayed. | |||
* <br> | |||
@@ -78,7 +78,7 @@ public final class ResourceType { | |||
} | |||
/** | |||
* @deprecated since 2.15. Use {@link #setProperty(String, String)} with "availableForFilters" set to "true". | |||
* @deprecated since 3.0. Use {@link #setProperty(String, String)} with "availableForFilters" set to "true". | |||
*/ | |||
@Deprecated | |||
public Builder availableForFilters() { | |||
@@ -97,7 +97,7 @@ public final class ResourceType { | |||
/** | |||
* Sets a property on the resource type. See the description of {@link ResourceType} class for more information. | |||
* | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public Builder setProperty(String key, String value) { | |||
Preconditions.checkNotNull(key); | |||
@@ -158,7 +158,7 @@ public final class ResourceType { | |||
} | |||
/** | |||
* @deprecated since 2.15. Use {@link #getBooleanProperty(String)} with "availableForFilters". | |||
* @deprecated since 3.0. Use {@link #getBooleanProperty(String)} with "availableForFilters". | |||
*/ | |||
@Deprecated | |||
public boolean isAvailableForFilters() { | |||
@@ -179,7 +179,7 @@ public final class ResourceType { | |||
* Returns the value of the property for this resource type. | |||
* | |||
* @return the String value of the property, or NULL if the property hasn't been set. | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public String getStringProperty(String key) { | |||
Preconditions.checkNotNull(key); | |||
@@ -190,7 +190,7 @@ public final class ResourceType { | |||
* Returns the value of the property for this resource type. | |||
* | |||
* @return the Boolean value of the property. If the property hasn't been set, False is returned. | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public Boolean getBooleanProperty(String key) { | |||
Preconditions.checkNotNull(key); |
@@ -73,7 +73,7 @@ public final class DateUtils { | |||
* | |||
* @param s any string | |||
* @return the date, null if parsing error or null string | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public static Date parseDateQuietly(@Nullable String s) { | |||
Date date = null; |
@@ -51,7 +51,7 @@ public final class CommandExecutor { | |||
/** | |||
* @throws CommandException | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public int execute(Command command, StreamConsumer stdOut, StreamConsumer stdErr, long timeoutMilliseconds) { | |||
ExecutorService executorService = null; |
@@ -35,7 +35,7 @@ import java.lang.annotation.Target; | |||
* The class will define a <code>@RequiredMeasures(allOf={"dsm"})</code> annotation. | |||
* </p> | |||
* | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
@Retention(RetentionPolicy.RUNTIME) | |||
@Target(ElementType.TYPE) |
@@ -29,7 +29,7 @@ import java.util.List; | |||
/** | |||
* Update cache of global settings (see org.sonar.api.config.Settings) and notify org.sonar.api.config.GlobalPropertyChangeHandler extensions | |||
* | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public class GlobalSettingsUpdater { | |||
private ServerSettings settings; |
@@ -22,7 +22,7 @@ package org.sonar.server.platform; | |||
import org.sonar.core.properties.PropertiesDao; | |||
/** | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public final class ServerDatabaseSettingsLoader { | |||
@@ -38,7 +38,7 @@ import java.io.IOException; | |||
* Ruby on Rails requires the files to be on filesystem but not in Java classpath (JAR). This component extracts | |||
* all the needed files from plugins and copy them to $SONAR_HOME/temp | |||
* | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public class ApplicationDeployer { | |||
private static final Logger LOG = LoggerFactory.getLogger(ApplicationDeployer.class); |
@@ -36,7 +36,7 @@ import java.util.jar.JarEntry; | |||
import java.util.jar.JarFile; | |||
/** | |||
* @since 2.15 | |||
* @since 3.0 | |||
*/ | |||
public final class ClassLoaderUtils { | |||
@@ -30,7 +30,7 @@ class RolesController < ApplicationController | |||
end | |||
def projects | |||
# for backward-compatibility with versions of views plugin that do not depend on sonar 2.15 | |||
# for backward-compatibility with versions of views plugin that do not depend on sonar 3.0 | |||
if java_facade.hasPlugin('views') | |||
@qualifiers = (['VW', 'SVW'] + java_facade.getQualifiersWithProperty('hasRolePolicy').to_a).compact.uniq | |||
else |
@@ -79,7 +79,7 @@ class Api::Utils | |||
end | |||
# Returns a new array created by sorting arr | |||
# Since Sonar 2.15 | |||
# Since Sonar 3.0 | |||
# | |||
# Examples : | |||
# Api::Utils.insensitive_sort(['foo', 'bar']) | |||
@@ -103,7 +103,7 @@ class Api::Utils | |||
# Sorts arr | |||
# Since Sonar 2.15 | |||
# Since Sonar 3.0 | |||
# | |||
# Examples : | |||
# Api::Utils.insensitive_sort!(['foo', 'bar']) | |||
@@ -126,7 +126,7 @@ class Api::Utils | |||
end | |||
# | |||
# Since Sonar 2.15 | |||
# Since Sonar 3.0 | |||
# | |||
def self.valid_period_index?(index) | |||
Api::Utils.is_integer?(index) && index.to_i > 0 && index.to_i <6 |
@@ -24,7 +24,7 @@ | |||
class CreateAuthors < ActiveRecord::Migration | |||
def self.up | |||
# removed in version 2.15, see migration 283 | |||
# removed in version 3.0, see migration 283 | |||
end | |||
end |
@@ -19,7 +19,7 @@ | |||
# | |||
# | |||
# Sonar 2.15 | |||
# Sonar 3.0 | |||
# | |||
class DropTableRulesCategories < ActiveRecord::Migration | |||
@@ -19,7 +19,7 @@ | |||
# | |||
# | |||
# Sonar 2.15 | |||
# Sonar 3.0 | |||
# | |||
class CleanReviewsWithNullBooleans < ActiveRecord::Migration | |||
@@ -19,7 +19,7 @@ | |||
# | |||
# | |||
# Sonar 2.15 | |||
# Sonar 3.0 | |||
# | |||
class UpdateReviewsBooleanColumns < ActiveRecord::Migration | |||
@@ -19,7 +19,7 @@ | |||
# | |||
# | |||
# Sonar 2.15 | |||
# Sonar 3.0 | |||
# | |||
class AddAuthorsPrimaryKey < ActiveRecord::Migration | |||
@@ -19,7 +19,7 @@ | |||
# | |||
# | |||
# Sonar 2.15 | |||
# Sonar 3.0 | |||
# | |||
class AddDefaultDescriptionToManualRules < ActiveRecord::Migration | |||
@@ -19,7 +19,7 @@ | |||
# | |||
# | |||
# Sonar 2.15 | |||
# Sonar 3.0 | |||
# | |||
class AddResourceIndexPrimaryKey < ActiveRecord::Migration | |||
@@ -19,7 +19,7 @@ | |||
# | |||
# | |||
# Sonar 2.15 | |||
# Sonar 3.0 | |||
# | |||
class AddIndicesToResourceIndex < ActiveRecord::Migration | |||
@@ -165,7 +165,7 @@ public class ReviewQuery extends Query<Review> { | |||
} | |||
/** | |||
* @deprecated since 2.15. Searching by user ID is not possible anymore. Use {@link #getAuthorLogins()} instead. | |||
* @deprecated since 3.0. Searching by user ID is not possible anymore. Use {@link #getAuthorLogins()} instead. | |||
*/ | |||
@Deprecated | |||
public String[] getAuthorLoginsOrIds() { | |||
@@ -173,7 +173,7 @@ public class ReviewQuery extends Query<Review> { | |||
} | |||
/** | |||
* @deprecated since 2.15. Searching by user ID is not possible anymore. Use {@link #setAuthorLogins(String...)} instead. | |||
* @deprecated since 3.0. Searching by user ID is not possible anymore. Use {@link #setAuthorLogins(String...)} instead. | |||
*/ | |||
@Deprecated | |||
public ReviewQuery setAuthorLoginsOrIds(String... authorLoginsOrIds) { | |||
@@ -198,7 +198,7 @@ public class ReviewQuery extends Query<Review> { | |||
} | |||
/** | |||
* @deprecated since 2.15. Searching by user ID is not possible anymore. Use {@link #getAssigneeLogins()} instead. | |||
* @deprecated since 3.0. Searching by user ID is not possible anymore. Use {@link #getAssigneeLogins()} instead. | |||
*/ | |||
@Deprecated | |||
public String[] getAssigneeLoginsOrIds() { | |||
@@ -206,7 +206,7 @@ public class ReviewQuery extends Query<Review> { | |||
} | |||
/** | |||
* @deprecated since 2.15. Searching by user ID is not possible anymore. Use {@link #setAssigneeLogins(String...)} instead. | |||
* @deprecated since 3.0. Searching by user ID is not possible anymore. Use {@link #setAssigneeLogins(String...)} instead. | |||
*/ | |||
@Deprecated | |||
public ReviewQuery setAssigneeLoginsOrIds(String... assigneeLoginsOrIds) { |