aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-duplications/src/main/java
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-06-01 23:03:37 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-06-05 09:54:04 +0200
commitc0e818946f33d65e6fae07bc37db2801e92bc906 (patch)
tree2376eb95d43b41c0235e7fc7700d031267a51c5d /sonar-duplications/src/main/java
parentb68a5b1d5d3abd578f4efccbcc57620247a83f2f (diff)
downloadsonarqube-c0e818946f33d65e6fae07bc37db2801e92bc906.tar.gz
sonarqube-c0e818946f33d65e6fae07bc37db2801e92bc906.zip
SONAR-6370 remove duplicated class DuplicationPredicates
Diffstat (limited to 'sonar-duplications/src/main/java')
-rw-r--r--sonar-duplications/src/main/java/org/sonar/duplications/DuplicationPredicates.java51
1 files changed, 0 insertions, 51 deletions
diff --git a/sonar-duplications/src/main/java/org/sonar/duplications/DuplicationPredicates.java b/sonar-duplications/src/main/java/org/sonar/duplications/DuplicationPredicates.java
deleted file mode 100644
index e45e6b48840..00000000000
--- a/sonar-duplications/src/main/java/org/sonar/duplications/DuplicationPredicates.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube 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.
- *
- * SonarQube 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.
- */
-package org.sonar.duplications;
-
-import com.google.common.annotations.Beta;
-import com.google.common.base.Predicate;
-import org.sonar.duplications.index.CloneGroup;
-
-import javax.annotation.Nullable;
-
-@Beta
-public final class DuplicationPredicates {
-
- private DuplicationPredicates() {
- }
-
- public static Predicate<CloneGroup> numberOfUnitsNotLessThan(int min) {
- return new NumberOfUnitsNotLessThan(min);
- }
-
- private static class NumberOfUnitsNotLessThan implements Predicate<CloneGroup> {
- private final int min;
-
- public NumberOfUnitsNotLessThan(int min) {
- this.min = min;
- }
-
- @Override
- public boolean apply(@Nullable CloneGroup input) {
- return input != null && input.getLengthInUnits() >= min;
- }
- }
-
-}