commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1694840 - /commons/proper/daemon/branches/1.0.x/src/main/java/org/apache/commons/daemon/DaemonInitException.java
Date Sat, 08 Aug 2015 18:45:47 GMT
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;
+    }
 
 }



Mime
View raw message