private boolean registerDifferentRange()

in src/main/java/org/jetbrains/jetCheck/IntCustomizer.java [56:72]


  private boolean registerDifferentRange(IntData data, IntDistribution current, IntDistribution original) {
    if (currentCombination.containsKey(data.id)) {
      changedDistributions.put(data.id, current);
      return true;
    }

    if (original.getMax() != current.getMax() || original.getMin() != current.getMin()) {
      LinkedHashSet<Integer> possibleValues = getPossibleValues(data, current, original);
      if (!possibleValues.isEmpty()) {
        assert !valuesToTry.containsKey(data.id);
        valuesToTry.put(data.id, possibleValues);
        changedDistributions.put(data.id, current);
        return true;
      }
    }
    return false;
  }