Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(879)

Unified Diff: client/fling/src/java/core/com/google/dart/CompileResult.java

Issue 9314025: Remove fling, deftserver (used only by fling), and commons-codec (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: client/fling/src/java/core/com/google/dart/CompileResult.java
===================================================================
--- client/fling/src/java/core/com/google/dart/CompileResult.java (revision 3853)
+++ client/fling/src/java/core/com/google/dart/CompileResult.java (working copy)
@@ -1,71 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-package com.google.dart;
-
-import java.io.Serializable;
-import java.util.List;
-
-/**
- * Contains the full results of a invocation of
- * {@link CompileService#build(String, String)} or
- * {@link CompileService#build(java.io.File)}.
- */
-@SuppressWarnings("serial")
-public class CompileResult implements Serializable {
- private final String binary;
- private final List<CompileError> errors;
- private final List<CompileError> warnings;
- private final Throwable exception;
- private final long duration;
-
- CompileResult(List<CompileError> errors, List<CompileError> warnings, Throwable exception,
- long duration) {
- this.binary = null;
- this.errors = errors;
- this.warnings = warnings;
- this.exception = exception;
- this.duration = duration;
- }
-
- CompileResult(String binary, List<CompileError> errors, List<CompileError> warnings, long duration) {
- this.binary = binary;
- this.errors = errors;
- this.warnings = warnings;
- this.exception = null;
- this.duration = duration;
- }
-
- /**
- * Indicates whether the build was successful. If false, {@link #getFatalErrors()}
- * will return the errors or {@link #getException()} will be set to the
- * Exception that was thrown by the compiler.
- */
- public boolean didBuild() {
- return errors.isEmpty() && exception == null;
- }
-
- /**
- * The time (in milliseconds) that elapsed during the compiler invocation.
- */
- public long getDuration() {
- return duration;
- }
-
- public List<CompileError> getErrors() {
- return errors;
- }
-
- public Throwable getException() {
- return exception;
- }
-
- public String getJavaScript() {
- return binary;
- }
-
- public List<CompileError> getWarnings() {
- return warnings;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698