Codota Logo
RedundantChangeException.<init>
Code IndexAdd Codota to your IDE (free)

How to use
com.linecorp.centraldogma.common.RedundantChangeException
constructor

Best Java code snippets using com.linecorp.centraldogma.common.RedundantChangeException.<init> (Showing top 9 results out of 315)

  • Common ways to obtain RedundantChangeException
private void myMethod () {
RedundantChangeException r =
  • Codota IconString message;new RedundantChangeException(message, false)
  • Smart code suggestions by Codota
}
origin: line/centraldogma

/**
 * POST /projects/{projectName}/repos/{repoName}/contents?revision={revision}
 *
 * <p>Adds or edits a file.
 */
@Post("/projects/{projectName}/repos/{repoName}/contents")
@RequiresWritePermission
public CompletableFuture<PushResultDto> commit(
    @Param("revision") @Default("-1") String revision,
    Repository repository,
    Author author,
    CommitMessageDto commitMessage,
    @RequestConverter(ChangesRequestConverter.class) Iterable<Change<?>> changes) {
  final Revision normalizedRevision = repository.normalizeNow(new Revision(revision));
  final CompletableFuture<Map<String, Change<?>>> changesFuture =
      repository.previewDiff(normalizedRevision, changes);
  return changesFuture.thenCompose(previewDiffs -> {
    final long commitTimeMillis = System.currentTimeMillis();
    if (previewDiffs.isEmpty()) {
      throw new RedundantChangeException();
    }
    return push(commitTimeMillis, author, repository, normalizedRevision,
          commitMessage, previewDiffs.values())
        .toCompletableFuture()
        .thenApply(rrev -> convert(rrev, commitTimeMillis));
  });
}
origin: com.linecorp.centraldogma/centraldogma-server

/**
 * POST /projects/{projectName}/repos/{repoName}/contents?revision={revision}
 *
 * <p>Adds or edits a file.
 */
@Post("/projects/{projectName}/repos/{repoName}/contents")
@RequiresWritePermission
public CompletableFuture<PushResultDto> commit(
    @Param("revision") @Default("-1") String revision,
    Repository repository,
    Author author,
    CommitMessageDto commitMessage,
    @RequestConverter(ChangesRequestConverter.class) Iterable<Change<?>> changes) {
  final Revision normalizedRevision = repository.normalizeNow(new Revision(revision));
  final CompletableFuture<Map<String, Change<?>>> changesFuture =
      repository.previewDiff(normalizedRevision, changes);
  return changesFuture.thenCompose(previewDiffs -> {
    final long commitTimeMillis = System.currentTimeMillis();
    if (previewDiffs.isEmpty()) {
      throw new RedundantChangeException();
    }
    return push(commitTimeMillis, author, repository, normalizedRevision,
          commitMessage, previewDiffs.values())
        .toCompletableFuture()
        .thenApply(rrev -> convert(rrev, commitTimeMillis));
  });
}
origin: com.linecorp.centraldogma/centraldogma-server-shaded

/**
 * POST /projects/{projectName}/repos/{repoName}/contents?revision={revision}
 *
 * <p>Adds or edits a file.
 */
@Post("/projects/{projectName}/repos/{repoName}/contents")
@Decorator(HasWritePermission.class)
public CompletableFuture<PushResultDto> commit(
    @Param("revision") @Default("-1") String revision,
    Repository repository,
    Author author,
    CommitMessageDto commitMessage,
    @RequestConverter(ChangesRequestConverter.class) Iterable<Change<?>> changes) {
  final Revision normalizedRevision = repository.normalizeNow(new Revision(revision));
  final CompletableFuture<Map<String, Change<?>>> changesFuture =
      repository.previewDiff(normalizedRevision, changes);
  return changesFuture.thenCompose(previewDiffs -> {
    final long commitTimeMillis = System.currentTimeMillis();
    if (previewDiffs.isEmpty()) {
      throw new RedundantChangeException();
    }
    return push(commitTimeMillis, author, repository, normalizedRevision,
          commitMessage, previewDiffs.values())
        .toCompletableFuture()
        .thenApply(rrev -> convert(rrev, commitTimeMillis));
  });
}
origin: line/centraldogma

  break;
case REDUNDANT_CHANGE:
  convertedCause = new RedundantChangeException(message, false);
  break;
case CHANGE_CONFLICT:
origin: com.linecorp.centraldogma/centraldogma-client-armeria-legacy-shaded

  break;
case REDUNDANT_CHANGE:
  convertedCause = new RedundantChangeException(message, false);
  break;
case CHANGE_CONFLICT:
origin: com.linecorp.centraldogma/centraldogma-client-armeria-legacy

  break;
case REDUNDANT_CHANGE:
  convertedCause = new RedundantChangeException(message, false);
  break;
case CHANGE_CONFLICT:
origin: com.linecorp.centraldogma/centraldogma-server

throw new RedundantChangeException(
    "changes did not change anything in " + parent().name() + '/' + name() +
    " at revision " + (prevRevision != null ? prevRevision.major() : 0) +
origin: line/centraldogma

throw new RedundantChangeException(
    "changes did not change anything in " + parent().name() + '/' + name() +
    " at revision " + (prevRevision != null ? prevRevision.major() : 0) +
origin: com.linecorp.centraldogma/centraldogma-server-shaded

throw new RedundantChangeException(
    "changes did not change anything in " + parent().name() + '/' + name() +
    " at revision " + (prevRevision != null ? prevRevision.major() : 0) +
com.linecorp.centraldogma.commonRedundantChangeException<init>

Javadoc

Creates a new instance.

Popular methods of RedundantChangeException

    Popular in Java

    • Running tasks concurrently on multiple threads
    • setContentView (Activity)
    • notifyDataSetChanged (ArrayAdapter)
    • setScale (BigDecimal)
      Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
    • Date (java.sql)
      A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
    • PriorityQueue (java.util)
      An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
    • ResourceBundle (java.util)
      Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
    • ExecutorService (java.util.concurrent)
      An Executor that provides methods to manage termination and methods that can produce a Future for tr
    • Reference (javax.naming)
    • Project (org.apache.tools.ant)
      Central representation of an Ant project. This class defines an Ant project with all of its targets,
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now