@@ -0,0 +1,23 @@ | |||
/* | |||
* SonarQube | |||
* Copyright (C) 2009-2022 SonarSource SA | |||
* mailto:info AT sonarsource DOT com | |||
* | |||
* This program is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU Lesser General Public | |||
* License as published by the Free Software Foundation; either | |||
* version 3 of the License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
* Lesser General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Lesser General Public License | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
@ParametersAreNonnullByDefault | |||
package org.sonar.xoo.coverage; | |||
import javax.annotation.ParametersAreNonnullByDefault; |
@@ -19,7 +19,6 @@ | |||
*/ | |||
package org.sonar.ce.task.projectanalysis.formula.coverage; | |||
import java.util.Optional; | |||
import org.sonar.ce.task.projectanalysis.formula.CounterInitializationContext; | |||
import org.sonar.ce.task.projectanalysis.measure.Measure; | |||
@@ -25,7 +25,6 @@ import org.sonar.ce.task.projectanalysis.component.Component; | |||
import org.sonar.ce.task.projectanalysis.metric.Metric; | |||
import static java.util.Objects.requireNonNull; | |||
import static org.apache.commons.lang.math.NumberUtils.compare; | |||
import static org.sonar.ce.task.projectanalysis.measure.Measure.ValueType.NO_VALUE; | |||
public class BestValueOptimization implements Predicate<Measure> { |
@@ -19,10 +19,7 @@ | |||
*/ | |||
package org.sonar.ce.task.projectanalysis.step; | |||
import java.util.Arrays; | |||
import java.util.Collection; | |||
import java.util.Optional; | |||
import java.util.function.Supplier; | |||
import org.sonar.api.utils.System2; | |||
import org.sonar.ce.task.log.CeTaskMessages; | |||
import org.sonar.ce.task.log.CeTaskMessages.Message; |
@@ -0,0 +1,23 @@ | |||
/* | |||
* SonarQube | |||
* Copyright (C) 2009-2022 SonarSource SA | |||
* mailto:info AT sonarsource DOT com | |||
* | |||
* This program is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU Lesser General Public | |||
* License as published by the Free Software Foundation; either | |||
* version 3 of the License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
* Lesser General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Lesser General Public License | |||
* along with this program; if not, write to the Free Software Foundation, | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
@ParametersAreNonnullByDefault | |||
package org.sonar.server.platform.db.migration.version.v98; | |||
import javax.annotation.ParametersAreNonnullByDefault; |
@@ -22,7 +22,6 @@ package org.sonar.server.measure.live; | |||
import java.util.List; | |||
import java.util.Objects; | |||
import java.util.Optional; | |||
import java.util.function.Function; | |||
import java.util.stream.Collectors; | |||
import org.sonar.api.config.Configuration; | |||
import org.sonar.api.measures.Metric; | |||
@@ -36,7 +35,6 @@ import org.sonar.db.measure.LiveMeasureDto; | |||
import org.sonar.server.measure.DebtRatingGrid; | |||
import org.sonar.server.measure.Rating; | |||
import static com.google.common.base.Preconditions.checkState; | |||
import static org.sonar.api.measures.CoreMetrics.NEW_SECURITY_HOTSPOTS_KEY; | |||
import static org.sonar.api.measures.CoreMetrics.NEW_SECURITY_HOTSPOTS_REVIEWED_KEY; | |||
import static org.sonar.api.measures.CoreMetrics.NEW_SECURITY_HOTSPOTS_REVIEWED_STATUS_KEY; |
@@ -109,8 +109,8 @@ public final class ServerId { | |||
public static ServerId of(@Nullable String databaseId, String datasetId) { | |||
if (databaseId != null) { | |||
int databaseIdLength = databaseId.length(); | |||
checkArgument(databaseIdLength == DATABASE_ID_LENGTH, "Illegal databaseId length (%s)", databaseIdLength); | |||
int databaseIdLength = databaseId.length(); | |||
checkArgument(databaseIdLength == DATABASE_ID_LENGTH, "Illegal databaseId length (%s)", databaseIdLength); | |||
} | |||
int datasetIdLength = datasetId.length(); | |||
checkArgument(datasetIdLength == DEPRECATED_SERVER_ID_LENGTH |