You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2015/08/08 20:45:47 UTC

svn commit: r1694840 - /commons/proper/daemon/branches/1.0.x/src/main/java/org/apache/commons/daemon/DaemonInitException.java

Author: sebb
Date: Sat Aug  8 18:45:46 2015
New Revision: 1694840

URL: http://svn.apache.org/r1694840
Log:
Fix indentation

Modified:
    commons/proper/daemon/branches/1.0.x/src/main/java/org/apache/commons/daemon/DaemonInitException.java

Modified: commons/proper/daemon/branches/1.0.x/src/main/java/org/apache/commons/daemon/DaemonInitException.java
URL: http://svn.apache.org/viewvc/commons/proper/daemon/branches/1.0.x/src/main/java/org/apache/commons/daemon/DaemonInitException.java?rev=1694840&r1=1694839&r2=1694840&view=diff
==============================================================================
--- commons/proper/daemon/branches/1.0.x/src/main/java/org/apache/commons/daemon/DaemonInitException.java (original)
+++ commons/proper/daemon/branches/1.0.x/src/main/java/org/apache/commons/daemon/DaemonInitException.java Sat Aug  8 18:45:46 2015
@@ -20,29 +20,30 @@ package org.apache.commons.daemon;
  * Throw this during init if you can't initialise yourself for some expected 
  * reason.  Using this exception will cause the exception's message to come out
  * on stdout, rather than a dirty great stacktrace.
+ * 
  * @author Nick Griffiths (nicobrevin@gmail.com)
  * @version $Id$
  */
 public class DaemonInitException extends Exception {
 
-  private static final long serialVersionUID = 5665891535067213551L;
+    private static final long serialVersionUID = 5665891535067213551L;
 
-  //don't rely on Throwable#getCause (jdk1.4)
-  private final Throwable cause;
+    // don't rely on Throwable#getCause (jdk1.4)
+    private final Throwable cause;
 
-  public DaemonInitException(String message) {
-    super(message);
-    this.cause = null;
-  }
-
-  public DaemonInitException(String message, Throwable cause) {
-    super(message);
-    this.cause = cause;
-  }
-
-  public String getMessageWithCause() {
-    String extra = this.cause == null ? "" : ": " + this.cause.getMessage();
-    return getMessage() + extra;
-  }
+    public DaemonInitException(String message) {
+        super(message);
+        this.cause = null;
+    }
+
+    public DaemonInitException(String message, Throwable cause) {
+        super(message);
+        this.cause = cause;
+    }
+
+    public String getMessageWithCause() {
+        String extra = this.cause == null ? "" : ": " + this.cause.getMessage();
+        return getMessage() + extra;
+    }
 
 }