From 7c7b9d023cd466c1771068badc020dab36beb553 Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Thu, 5 Apr 2012 14:49:11 -0500 Subject: Removed whitespaces from Java code. Whitespaces in Java code have been removed with the following command: find . -not -path .git -name *.java -exec sed -i 's/[[:blank:]]\+$//' {} \; Ticket #134 --- .../src/com/netscape/cms/logging/LogEntry.java | 6 +-- .../src/com/netscape/cms/logging/LogFile.java | 46 +++++++++++----------- .../com/netscape/cms/logging/RollingLogFile.java | 22 +++++------ 3 files changed, 37 insertions(+), 37 deletions(-) (limited to 'base/common/src/com/netscape/cms/logging') diff --git a/base/common/src/com/netscape/cms/logging/LogEntry.java b/base/common/src/com/netscape/cms/logging/LogEntry.java index d91bd7406..ac8d16f54 100644 --- a/base/common/src/com/netscape/cms/logging/LogEntry.java +++ b/base/common/src/com/netscape/cms/logging/LogEntry.java @@ -25,7 +25,7 @@ import java.util.Vector; /** * A log entry of LogFile - * + * * @version $Revision$, $Date$ */ public class LogEntry { @@ -41,7 +41,7 @@ public class LogEntry { /** * Constructor for a LogEntry. - * + * */ public LogEntry(String entry) throws ParseException { mEntry = entry; @@ -50,7 +50,7 @@ public class LogEntry { /** * parse a log entry - * + * * return a vector of the segments of the entry */ diff --git a/base/common/src/com/netscape/cms/logging/LogFile.java b/base/common/src/com/netscape/cms/logging/LogFile.java index 5144bf16d..fa5531a8e 100644 --- a/base/common/src/com/netscape/cms/logging/LogFile.java +++ b/base/common/src/com/netscape/cms/logging/LogFile.java @@ -80,7 +80,7 @@ import com.netscape.cmsutil.util.Utils; /** * A log event listener which write logs to log files - * + * * @version $Revision$, $Date$ **/ public class LogFile implements ILogEventListener, IExtendedPluginInfo { @@ -229,7 +229,7 @@ public class LogFile implements ILogEventListener, IExtendedPluginInfo { /** * Constructor for a LogFile. - * + * */ public LogFile() { } @@ -310,7 +310,7 @@ public class LogFile implements ILogEventListener, IExtendedPluginInfo { /** * add the event to the selected events list - * + * * @param event to be selected */ public void selectEvent(String event) { @@ -320,7 +320,7 @@ public class LogFile implements ILogEventListener, IExtendedPluginInfo { /** * remove the event from the selected events list - * + * * @param event to be de-selected */ public void deselectEvent(String event) { @@ -330,7 +330,7 @@ public class LogFile implements ILogEventListener, IExtendedPluginInfo { /** * replace the selected events list - * + * * @param events comma-separated event list */ public void replaceEvents(String events) { @@ -386,7 +386,7 @@ public class LogFile implements ILogEventListener, IExtendedPluginInfo { /** * Initialize and open the log using the parameters from a config store - * + * * @param config The property config store to find values in */ public void init(IConfigStore config) throws IOException, @@ -506,7 +506,7 @@ public class LogFile implements ILogEventListener, IExtendedPluginInfo { /** * Initialize and open the log - * + * * @param bufferSize The buffer size for the output stream in bytes * @param flushInterval The interval in seconds to flush the log */ @@ -628,11 +628,11 @@ public class LogFile implements ILogEventListener, IExtendedPluginInfo { /** * Startup the instance *

- * + * *

- * + * * @exception EBaseException if an internal error occurred */ public void startup() throws EBaseException { @@ -690,12 +690,12 @@ public class LogFile implements ILogEventListener, IExtendedPluginInfo { /** * Record that the signed audit log has been signed *

- * + * *

- * + * * @exception IOException for input/output problems * @exception ELogException when plugin implementation fails * @exception SignatureException when signing fails @@ -756,7 +756,7 @@ public class LogFile implements ILogEventListener, IExtendedPluginInfo { /** * Open the log file. This creates the buffered FileWriter - * + * */ protected synchronized void open() throws IOException { RandomAccessFile out; @@ -804,7 +804,7 @@ public class LogFile implements ILogEventListener, IExtendedPluginInfo { /** * Flush the log file. Also update the MAC for hash protected logs - * + * */ public synchronized void flush() { try { @@ -838,7 +838,7 @@ public class LogFile implements ILogEventListener, IExtendedPluginInfo { /** * Close the log file - * + * */ protected synchronized void close() { try { @@ -855,7 +855,7 @@ public class LogFile implements ILogEventListener, IExtendedPluginInfo { /** * Shutdown this log file. *

- * + * *

@@ -881,7 +881,7 @@ public class LogFile implements ILogEventListener, IExtendedPluginInfo { /** * Set the flush interval *

- * + * * @param flushInterval The amount of time in seconds until the log * is flush. A value of 0 will disable autoflush. This will also set * the update period for hash protected logs. @@ -940,7 +940,7 @@ public class LogFile implements ILogEventListener, IExtendedPluginInfo { /** * Synchronized method to write a string to the log file. All I18N * should take place before this call. - * + * * @param entry The log entry string */ protected synchronized void log(String entry) throws ELogException { @@ -1053,7 +1053,7 @@ public class LogFile implements ILogEventListener, IExtendedPluginInfo { /** * Write an event to the log file - * + * * @param ev The event to be logged. */ public void log(ILogEvent ev) throws ELogException { @@ -1116,7 +1116,7 @@ public class LogFile implements ILogEventListener, IExtendedPluginInfo { /** * change multi-line log entry by replace "\n" with "\n " - * + * * @param original The original multi-line log entry. */ private String prepareMultiline(String original) { @@ -1134,7 +1134,7 @@ public class LogFile implements ILogEventListener, IExtendedPluginInfo { * Read all entries whose logLevel>=lowLevel && log source = source * to at most maxLine entries(from end) * If the parameter is -1, it's ignored and return all entries - * + * * @param maxLine The maximum lines to be returned * @param lowLevel The lowest log level to be returned * @param source The particular log source to be returned @@ -1302,7 +1302,7 @@ public class LogFile implements ILogEventListener, IExtendedPluginInfo { /** * Retrieves the configuration store of this subsystem. *

- * + * * @return configuration store */ public IConfigStore getConfigStore() { @@ -1510,11 +1510,11 @@ public class LogFile implements ILogEventListener, IExtendedPluginInfo { /** * Signed Audit Log - * + * * This method is inherited by all classes that extend this "LogFile" * class, and is called to store messages to the signed audit log. *

- * + * * @param msg signed audit log message */ protected void audit(String msg) { diff --git a/base/common/src/com/netscape/cms/logging/RollingLogFile.java b/base/common/src/com/netscape/cms/logging/RollingLogFile.java index 93455e9fe..312978fae 100644 --- a/base/common/src/com/netscape/cms/logging/RollingLogFile.java +++ b/base/common/src/com/netscape/cms/logging/RollingLogFile.java @@ -44,7 +44,7 @@ import com.netscape.cmsutil.util.Utils; * A rotating log file for Certificate log events. This class loosely follows * the Netscape Common Log API implementing rollover interval, size and file * naming conventions. It does not yet implement Disk Usage. - * + * * @version $Revision$, $Date$ */ public class RollingLogFile extends LogFile { @@ -113,7 +113,7 @@ public class RollingLogFile extends LogFile { /** * Initialize and open a RollingLogFile using the prop config store - * + * * @param config The property config store to find values in */ public void init(IConfigStore config) throws IOException, @@ -151,7 +151,7 @@ public class RollingLogFile extends LogFile { /** * Set the rollover interval - * + * * @param rolloverSeconds The amount of time in seconds until the log * is rotated. A value of 0 will disable log rollover. **/ @@ -169,7 +169,7 @@ public class RollingLogFile extends LogFile { /** * Get the rollover interval - * + * * @return The interval in seconds in which the log is rotated **/ public synchronized int getRolloverTime() { @@ -178,7 +178,7 @@ public class RollingLogFile extends LogFile { /** * Set the file expiration time - * + * * @param expirationSeconds The amount of time in seconds until log files * are deleted **/ @@ -203,7 +203,7 @@ public class RollingLogFile extends LogFile { /** * Get the expiration time - * + * * @return The age in seconds in which log files are delete **/ public int getExpirationTime() { @@ -280,15 +280,15 @@ public class RollingLogFile extends LogFile { * Remove any log files which have not been modified in the specified * time *

- * + * * NOTE: automatic removal of log files is currently NOT supported! *

- * + * *

- * + * * @param expirationSeconds The number of seconds since the expired files * have been modified. * @return the time in milliseconds when the next file expires @@ -496,7 +496,7 @@ public class RollingLogFile extends LogFile { /** * Write an event to the log file - * + * * @param ev The event to be logged. **/ public synchronized void log(ILogEvent ev) throws ELogException { @@ -531,7 +531,7 @@ public class RollingLogFile extends LogFile { /** * Get the log file list in the log directory - * + * * @return an array of filenames with related path to cert server root */ protected String[] fileList() { -- cgit