Alon Bar-Lev has uploaded a new change for review. Change subject: core: cleanup: remove trailing spaces ......................................................................
core: cleanup: remove trailing spaces Change-Id: I535c8e86d13f89d860569f4c582e4fe17cee5e0f Signed-off-by: Alon Bar-Lev <alo...@redhat.com> --- M frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/java/text/DateFormat.java M frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/DateTime.java M frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/Regex.java M frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/RegexOptions.java M frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/TimeSpan.java M frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/searchbackend/DateUtils.java M frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/FrontendActionAsyncResult.java M frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/IEnlistmentNotification.java M frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/Task.java M frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/external/CharEncoding.java M frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/external/DecoderException.java M frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/external/EncoderException.java M frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/external/StringUtils.java 13 files changed, 105 insertions(+), 105 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/11/21811/1 diff --git a/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/java/text/DateFormat.java b/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/java/text/DateFormat.java index f73a5e3..9657521 100644 --- a/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/java/text/DateFormat.java +++ b/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/java/text/DateFormat.java @@ -1,9 +1,9 @@ package java.text; public class DateFormat { - + /** DateFormat styling constants */ - + /** * Constant for full style pattern. */ diff --git a/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/DateTime.java b/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/DateTime.java index ec55d72..e51a303 100644 --- a/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/DateTime.java +++ b/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/DateTime.java @@ -10,9 +10,9 @@ //public static Date Now = new DateTime(); // public static DateTime Now2 = new DateTime(); - + private static final String dayNames[] = EnumCompat.GetNames(DayOfWeek.class); - + public DateTime(int year, int month, int date) { this(new Date(year, month, date)); } @@ -24,7 +24,7 @@ public DateTime(Date argvalue) { super(argvalue.getTime()); } - + public DateTime(long millis) { super(millis); } @@ -53,7 +53,7 @@ formatString = "yyyy-MM-ddHH:mm:ss"; compat = true; } - + //TODO: GWT-TODO should be replaced /* SimpleDateFormat fmt = new SimpleDateFormat(formatString) ; @@ -81,7 +81,7 @@ // not pass GWT compilitation return new Date(-7200000); } - + public DateTime AddDays(int i) { Date date = new Date(); CalendarUtil.addDaysToDate(date, i); diff --git a/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/Regex.java b/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/Regex.java index d24beff..4f00b42 100644 --- a/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/Regex.java +++ b/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/Regex.java @@ -6,9 +6,9 @@ /** * Replacement for System.Text.RegularExpressions.Regex - * + * * @author drankevi - * + * */ public class Regex { diff --git a/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/RegexOptions.java b/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/RegexOptions.java index 72d2381..de66d88 100644 --- a/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/RegexOptions.java +++ b/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/RegexOptions.java @@ -3,9 +3,9 @@ /** * copied from .NET enum: System.Text.RegularExpressions.RegexOptions * Provides enumerated values to use to set regular expression options. - * + * * @author drankevi - * + * */ public class RegexOptions { @@ -47,7 +47,7 @@ * character except \n). */ public static final int Singleline = 16; - + /** * Eliminates unescaped white space from the pattern and enables comments marked with #. However, the * System.Text.RegularExpressions.RegexOptions.IgnorePatternWhitespace value does not affect or eliminate white diff --git a/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/TimeSpan.java b/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/TimeSpan.java index 0715edd..2e2861d 100644 --- a/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/TimeSpan.java +++ b/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/compat/TimeSpan.java @@ -9,24 +9,24 @@ public static int MS_PER_SECOND = 1000 ; public static int MS_PER_MINUTE = 60 * 1000 ; public static int MS_PER_HOUR = 60 * 60 * 1000 ; - public static int MS_PER_DAY = 24 * 60 * 60 * 1000 ; - - public int Days; + public static int MS_PER_DAY = 24 * 60 * 60 * 1000 ; + + public int Days; public int Hours; public int Minutes; public int Seconds; public int Milliseconds ; public double TotalDays ; public double TotalHours ; - public double TotalMinutes ; - public double TotalSeconds; - public long TotalMilliseconds; + public double TotalMinutes ; + public double TotalSeconds; + public long TotalMilliseconds; public TimeSpan() { } - - + + public TimeSpan(long milliseconds) { TotalMilliseconds = milliseconds ; computeProperties() ; @@ -41,40 +41,40 @@ { this(days,hours,minutes,seconds,0) ; } - + public TimeSpan(int days, int hours, int minutes, int seconds, int milliseconds) { TotalMilliseconds = milliseconds ; TotalMilliseconds += seconds * MS_PER_SECOND ; TotalMilliseconds += minutes * MS_PER_MINUTE ; TotalMilliseconds += hours * MS_PER_HOUR ; - TotalMilliseconds += days * MS_PER_DAY ; + TotalMilliseconds += days * MS_PER_DAY ; computeProperties() ; } - - + + public TimeSpan(int[] data) { this(data[0], data[1], data[2], data[3], data[4]) ; } - - + + protected void computeProperties() { long remainder = TotalMilliseconds ; - // Days + // Days Days = (int) (remainder / MS_PER_DAY) ; remainder = remainder % MS_PER_DAY ; // Hours Hours = (int) (remainder / MS_PER_HOUR) ; - remainder = remainder % MS_PER_HOUR ; + remainder = remainder % MS_PER_HOUR ; remainder = remainder % MS_PER_DAY ; // Minutes Minutes = (int) (remainder / MS_PER_MINUTE) ; - remainder = remainder % MS_PER_MINUTE ; + remainder = remainder % MS_PER_MINUTE ; // Minutes Seconds = (int) (remainder / MS_PER_SECOND) ; - remainder = remainder % MS_PER_SECOND ; - - Milliseconds = (int) remainder ; + remainder = remainder % MS_PER_SECOND ; + + Milliseconds = (int) remainder ; } // The format for a timespan is: @@ -86,38 +86,38 @@ multiplier = -1 ; cleaned = cleaned.replace("-", "").trim() ; } - + RegExp r = RegExp.compile("^[0-9]+$"); if (r.test(cleaned)) { int days = Integer.parseInt(cleaned) ; return new TimeSpan(days * multiplier, 0, 0, 0) ; } - + String regex = "^[0-9]+.[0-9]{2}:[0-9]{2}(:[0-9]{2}(.[0-9]{2})?)?$" ; r = RegExp.compile(regex); if (r.test(cleaned)) { String[] items = cleaned.split("[:.]") ; int[] data = new int[5] ; - + for (int x = 0 ; x < items.length ; x++) { data[x] = Integer.parseInt(items[x]) * multiplier ; } - + return new TimeSpan(data) ; - } - + } + regex = "^[0-9]{2}:[0-9]{2}(:[0-9]{2}(.[0-9]{2})?)?$" ; r = RegExp.compile(regex); if (r.test(cleaned)) { String[] items = cleaned.split("[:.]") ; int[] data = new int[5] ; - + for (int x = 0 ; x < items.length ; x++) { data[x+1] = Integer.parseInt(items[x]) * multiplier ; } - + return new TimeSpan(data) ; - } + } // If we get to here, it is invalid throw new IllegalArgumentException("Invalid TimeSpan") ; } @@ -130,7 +130,7 @@ //GWT-TODO return String.format("%s%d.%02d:%02d:%02d.%03d", prefix, Days, Hours, Minutes, Seconds, Milliseconds) ; return null; } - + public static TimeSpan tryParse(String string) { try { return TimeSpan.parse(string); @@ -153,5 +153,5 @@ } return result; } - + } diff --git a/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/searchbackend/DateUtils.java b/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/searchbackend/DateUtils.java index f73b755..9b6b06e 100644 --- a/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/searchbackend/DateUtils.java +++ b/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/ui/uioverrides/org/ovirt/engine/core/searchbackend/DateUtils.java @@ -9,20 +9,20 @@ import java.util.Date; class DateUtils { - - static Date parse(String str) { + + static Date parse(String str) { try { return DateTimeFormat.getFormat(PredefinedFormat.DATE_MEDIUM).parse(str); - } catch (IllegalArgumentException iae) { + } catch (IllegalArgumentException iae) { } return null; } - + public static DateTimeFormat getFormat(int dateStyle) { switch (dateStyle) { case DateFormat.FULL: - return DateTimeFormat.getFormat(PredefinedFormat.DATE_FULL); + return DateTimeFormat.getFormat(PredefinedFormat.DATE_FULL); case DateFormat.LONG: return DateTimeFormat.getFormat(PredefinedFormat.DATE_LONG); case DateFormat.SHORT: @@ -36,7 +36,7 @@ switch (timeStyle) { case DateFormat.FULL: - return DateTimeFormat.getFormat(PredefinedFormat.DATE_TIME_FULL); + return DateTimeFormat.getFormat(PredefinedFormat.DATE_TIME_FULL); case DateFormat.LONG: return DateTimeFormat.getFormat(PredefinedFormat.DATE_TIME_LONG); case DateFormat.SHORT: @@ -45,7 +45,7 @@ return DateTimeFormat.getFormat(PredefinedFormat.DATE_TIME_MEDIUM); } } - + public static String getDayOfWeek(int addDays) { Date date = new Date(); return DateTime.getDayOfTheWeekAsString(date.getDay()).toUpperCase(); diff --git a/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/FrontendActionAsyncResult.java b/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/FrontendActionAsyncResult.java index b808e60..b2db11f 100644 --- a/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/FrontendActionAsyncResult.java +++ b/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/FrontendActionAsyncResult.java @@ -49,7 +49,7 @@ setParameters(parameters); setReturnValue(returnValue); } - + public FrontendActionAsyncResult(VdcActionType actionType, VdcActionParametersBase parameters, VdcReturnValueBase returnValue, Object state) { setActionType(actionType); diff --git a/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/IEnlistmentNotification.java b/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/IEnlistmentNotification.java index dbd4413..ce248d3 100644 --- a/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/IEnlistmentNotification.java +++ b/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/IEnlistmentNotification.java @@ -1,17 +1,17 @@ package org.ovirt.engine.ui.uicompat; public abstract class IEnlistmentNotification { - + private final String correlationId; - + public IEnlistmentNotification(String correlationId){ this.correlationId = correlationId; } - + public abstract void prepare(PreparingEnlistment preparingEnlistment); - + public abstract void commit(Enlistment enlistment); - + public abstract void rollback(Enlistment enlistment); public String getCorrelationId() { diff --git a/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/Task.java b/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/Task.java index 6f87fea..fadb93f 100644 --- a/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/Task.java +++ b/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/Task.java @@ -8,11 +8,11 @@ private ITaskTarget target; private TaskContext context; - + private Task(ITaskTarget target, Object state) { this.target = target; - + context = new TaskContext(Dispatcher.CurrentDispatcher, state); } diff --git a/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/external/CharEncoding.java b/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/external/CharEncoding.java index 6715963..a85879b 100644 --- a/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/external/CharEncoding.java +++ b/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/external/CharEncoding.java @@ -7,9 +7,9 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -21,7 +21,7 @@ /** * Character encoding names required of every implementation of the Java platform. - * + * * From the Java documentation <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard * charsets</a>: * <p> @@ -29,7 +29,7 @@ * release documentation for your implementation to see if any other encodings are supported. Consult the release * documentation for your implementation to see if any other encodings are supported. </cite> * </p> - * + * * <ul> * <li><code>US-ASCII</code><br/> * Seven-bit ASCII, a.k.a. ISO646-US, a.k.a. the Basic Latin block of the Unicode character set.</li> @@ -45,10 +45,10 @@ * Sixteen-bit Unicode Transformation Format, byte order specified by a mandatory initial byte-order mark (either order * accepted on input, big-endian used on output.)</li> * </ul> - * + * * This perhaps would best belong in the [lang] project. Even if a similar interface is defined in [lang], it is not * forseen that [codec] would be made to depend on [lang]. - * + * * @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a> * @author Apache Software Foundation * @since 1.4 @@ -60,7 +60,7 @@ * <p> * Every implementation of the Java platform is required to support this character encoding. * </p> - * + * * @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a> */ public static final String ISO_8859_1 = "ISO-8859-1"; //$NON-NLS-1$ @@ -72,7 +72,7 @@ * <p> * Every implementation of the Java platform is required to support this character encoding. * </p> - * + * * @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a> */ public static final String US_ASCII = "US-ASCII"; //$NON-NLS-1$ @@ -85,7 +85,7 @@ * <p> * Every implementation of the Java platform is required to support this character encoding. * </p> - * + * * @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a> */ public static final String UTF_16 = "UTF-16"; //$NON-NLS-1$ @@ -97,7 +97,7 @@ * <p> * Every implementation of the Java platform is required to support this character encoding. * </p> - * + * * @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a> */ public static final String UTF_16BE = "UTF-16BE"; //$NON-NLS-1$ @@ -109,7 +109,7 @@ * <p> * Every implementation of the Java platform is required to support this character encoding. * </p> - * + * * @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a> */ public static final String UTF_16LE = "UTF-16LE"; //$NON-NLS-1$ @@ -121,7 +121,7 @@ * <p> * Every implementation of the Java platform is required to support this character encoding. * </p> - * + * * @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a> */ public static final String UTF_8 = "UTF-8"; //$NON-NLS-1$ diff --git a/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/external/DecoderException.java b/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/external/DecoderException.java index d70c60e..7f09aa1 100644 --- a/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/external/DecoderException.java +++ b/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/external/DecoderException.java @@ -7,9 +7,9 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -21,7 +21,7 @@ /** * Thrown when a Decoder has encountered a failure condition during a decode. - * + * * @author Apache Software Foundation * @version $Id: DecoderException.java 797804 2009-07-25 17:27:04Z ggregory $ */ @@ -29,7 +29,7 @@ /** * Declares the Serial Version Uid. - * + * * @see <a href="http://c2.com/cgi/wiki?AlwaysDeclareSerialVersionUid">Always Declare Serial Version Uid</a> */ private static final long serialVersionUID = 1L; @@ -37,7 +37,7 @@ /** * Constructs a new exception with <code>null</code> as its detail message. The cause is not initialized, and may * subsequently be initialized by a call to {@link #initCause}. - * + * * @since 1.4 */ public DecoderException() { @@ -47,7 +47,7 @@ /** * Constructs a new exception with the specified detail message. The cause is not initialized, and may subsequently * be initialized by a call to {@link #initCause}. - * + * * @param message * The detail message which is saved for later retrieval by the {@link #getMessage()} method. */ @@ -57,12 +57,12 @@ /** * Constructsa new exception with the specified detail message and cause. - * + * * <p> * Note that the detail message associated with <code>cause</code> is not automatically incorporated into this * exception's detail message. * </p> - * + * * @param message * The detail message which is saved for later retrieval by the {@link #getMessage()} method. * @param cause @@ -78,7 +78,7 @@ * Constructs a new exception with the specified cause and a detail message of <code>(cause==null ? * null : cause.toString())</code> (which typically contains the class and detail message of <code>cause</code>). * This constructor is useful for exceptions that are little more than wrappers for other throwables. - * + * * @param cause * The cause which is saved for later retrieval by the {@link #getCause()} method. A <code>null</code> * value is permitted, and indicates that the cause is nonexistent or unknown. diff --git a/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/external/EncoderException.java b/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/external/EncoderException.java index cb433c2..b877cd7 100644 --- a/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/external/EncoderException.java +++ b/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/external/EncoderException.java @@ -7,9 +7,9 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -23,7 +23,7 @@ * Thrown when there is a failure condition during the encoding process. This exception is thrown when an Encoder * encounters a encoding specific exception such as invalid data, inability to calculate a checksum, characters outside * of the expected range. - * + * * @author Apache Software Foundation * @version $Id: EncoderException.java 797804 2009-07-25 17:27:04Z ggregory $ */ @@ -31,7 +31,7 @@ /** * Declares the Serial Version Uid. - * + * * @see <a href="http://c2.com/cgi/wiki?AlwaysDeclareSerialVersionUid">Always Declare Serial Version Uid</a> */ private static final long serialVersionUID = 1L; @@ -39,7 +39,7 @@ /** * Constructs a new exception with <code>null</code> as its detail message. The cause is not initialized, and may * subsequently be initialized by a call to {@link #initCause}. - * + * * @since 1.4 */ public EncoderException() { @@ -49,7 +49,7 @@ /** * Constructs a new exception with the specified detail message. The cause is not initialized, and may subsequently * be initialized by a call to {@link #initCause}. - * + * * @param message * a useful message relating to the encoder specific error. */ @@ -59,12 +59,12 @@ /** * Constructs a new exception with the specified detail message and cause. - * + * * <p> * Note that the detail message associated with <code>cause</code> is not automatically incorporated into this * exception's detail message. * </p> - * + * * @param message * The detail message which is saved for later retrieval by the {@link #getMessage()} method. * @param cause @@ -80,7 +80,7 @@ * Constructs a new exception with the specified cause and a detail message of <code>(cause==null ? * null : cause.toString())</code> (which typically contains the class and detail message of <code>cause</code>). * This constructor is useful for exceptions that are little more than wrappers for other throwables. - * + * * @param cause * The cause which is saved for later retrieval by the {@link #getCause()} method. A <code>null</code> * value is permitted, and indicates that the cause is nonexistent or unknown. diff --git a/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/external/StringUtils.java b/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/external/StringUtils.java index cbfaa1d..f9e19a8 100644 --- a/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/external/StringUtils.java +++ b/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/external/StringUtils.java @@ -7,9 +7,9 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -28,7 +28,7 @@ /** * Converts String to and from bytes using the encodings required by the Java specification. These encodings are specified in <a * href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a> - * + * * @see CharEncoding * @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html">Standard charsets</a> * @author <a href="mailto:ggreg...@seagullsw.com">Gary Gregory</a> @@ -40,7 +40,7 @@ /** * Encodes the given string into a sequence of bytes using the ISO-8859-1 charset, storing the result into a new * byte array. - * + * * @param string * the String to encode * @return encoded bytes @@ -56,7 +56,7 @@ /** * Encodes the given string into a sequence of bytes using the US-ASCII charset, storing the result into a new byte * array. - * + * * @param string * the String to encode * @return encoded bytes @@ -72,7 +72,7 @@ /** * Encodes the given string into a sequence of bytes using the UTF-16 charset, storing the result into a new byte * array. - * + * * @param string * the String to encode * @return encoded bytes @@ -88,7 +88,7 @@ /** * Encodes the given string into a sequence of bytes using the UTF-16BE charset, storing the result into a new byte * array. - * + * * @param string * the String to encode * @return encoded bytes @@ -104,7 +104,7 @@ /** * Encodes the given string into a sequence of bytes using the UTF-16LE charset, storing the result into a new byte * array. - * + * * @param string * the String to encode * @return encoded bytes @@ -120,7 +120,7 @@ /** * Encodes the given string into a sequence of bytes using the UTF-8 charset, storing the result into a new byte * array. - * + * * @param string * the String to encode * @return encoded bytes @@ -140,7 +140,7 @@ * This method catches {@link UnsupportedEncodingException} and rethrows it as {@link IllegalStateException}, which * should never happen for a required charset name. Use this method when the encoding is required to be in the JRE. * </p> - * + * * @param string * the String to encode * @param charsetName @@ -173,7 +173,7 @@ * This method catches {@link UnsupportedEncodingException} and re-throws it as {@link IllegalStateException}, which * should never happen for a required charset name. Use this method when the encoding is required to be in the JRE. * </p> - * + * * @param bytes * The bytes to be decoded into characters * @param charsetName @@ -198,7 +198,7 @@ /** * Constructs a new <code>String</code> by decoding the specified array of bytes using the ISO-8859-1 charset. - * + * * @param bytes * The bytes to be decoded into characters * @return A new <code>String</code> decoded from the specified array of bytes using the given charset. @@ -212,7 +212,7 @@ /** * Constructs a new <code>String</code> by decoding the specified array of bytes using the US-ASCII charset. - * + * * @param bytes * The bytes to be decoded into characters * @return A new <code>String</code> decoded from the specified array of bytes using the given charset. @@ -226,7 +226,7 @@ /** * Constructs a new <code>String</code> by decoding the specified array of bytes using the UTF-16 charset. - * + * * @param bytes * The bytes to be decoded into characters * @return A new <code>String</code> decoded from the specified array of bytes using the given charset. @@ -240,7 +240,7 @@ /** * Constructs a new <code>String</code> by decoding the specified array of bytes using the UTF-16BE charset. - * + * * @param bytes * The bytes to be decoded into characters * @return A new <code>String</code> decoded from the specified array of bytes using the given charset. @@ -254,7 +254,7 @@ /** * Constructs a new <code>String</code> by decoding the specified array of bytes using the UTF-16LE charset. - * + * * @param bytes * The bytes to be decoded into characters * @return A new <code>String</code> decoded from the specified array of bytes using the given charset. @@ -268,7 +268,7 @@ /** * Constructs a new <code>String</code> by decoding the specified array of bytes using the UTF-8 charset. - * + * * @param bytes * The bytes to be decoded into characters * @return A new <code>String</code> decoded from the specified array of bytes using the given charset. -- To view, visit http://gerrit.ovirt.org/21811 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I535c8e86d13f89d860569f4c582e4fe17cee5e0f Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches