You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2012/04/05 20:19:45 UTC
svn commit: r1309987 - in
/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time:
DateParser.java DatePrinter.java
Author: ggregory
Date: Thu Apr 5 18:19:44 2012
New Revision: 1309987
URL: http://svn.apache.org/viewvc?rev=1309987&view=rev
Log:
Interface members are implicitly public.
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DateParser.java
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DatePrinter.java
Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DateParser.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DateParser.java?rev=1309987&r1=1309986&r2=1309987&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DateParser.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DateParser.java Thu Apr 5 18:19:44 2012
@@ -38,7 +38,7 @@ public interface DateParser {
* @return A <code>Date</code> parsed from the string
* @throws ParseException if the beginning of the specified string cannot be parsed.
*/
- public Date parse(String source) throws ParseException;
+ Date parse(String source) throws ParseException;
/**
* Equivalent to DateFormat.parse(String, ParsePosition).
@@ -51,7 +51,7 @@ public interface DateParser {
* @return A <code>Date</code> parsed from the string. In case of error, returns null.
* @throws NullPointerException if text or pos is null.
*/
- public Date parse(String source, ParsePosition pos);
+ Date parse(String source, ParsePosition pos);
// Accessors
//-----------------------------------------------------------------------
@@ -60,7 +60,7 @@ public interface DateParser {
*
* @return the pattern, {@link java.text.SimpleDateFormat} compatible
*/
- public String getPattern();
+ String getPattern();
/**
* <p>
@@ -74,14 +74,14 @@ public interface DateParser {
*
* @return the time zone
*/
- public TimeZone getTimeZone();
+ TimeZone getTimeZone();
/**
* <p>Get the locale used by this parser.</p>
*
* @return the locale
*/
- public Locale getLocale();
+ Locale getLocale();
/**
* Parses text from a string to produce a Date.
@@ -95,5 +95,5 @@ public interface DateParser {
*
* @see java.text.DateFormat#parseObject(String, ParsePosition)
*/
- public Object parseObject(String source, ParsePosition pos);
+ Object parseObject(String source, ParsePosition pos);
}
Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DatePrinter.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DatePrinter.java?rev=1309987&r1=1309986&r2=1309987&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DatePrinter.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DatePrinter.java Thu Apr 5 18:19:44 2012
@@ -37,7 +37,7 @@ public interface DatePrinter {
* @return the formatted string
* @since 2.1
*/
- public String format(long millis);
+ String format(long millis);
/**
* <p>Formats a {@code Date} object using a {@code GregorianCalendar}.</p>
@@ -45,7 +45,7 @@ public interface DatePrinter {
* @param date the date to format
* @return the formatted string
*/
- public String format(Date date);
+ String format(Date date);
/**
* <p>Formats a {@code Calendar} object.</p>
@@ -53,7 +53,7 @@ public interface DatePrinter {
* @param calendar the calendar to format
* @return the formatted string
*/
- public String format(Calendar calendar);
+ String format(Calendar calendar);
/**
* <p>Formats a milliseond {@code long} value into the
@@ -63,7 +63,7 @@ public interface DatePrinter {
* @param buf the buffer to format into
* @return the specified string buffer
*/
- public StringBuffer format(long millis, StringBuffer buf);
+ StringBuffer format(long millis, StringBuffer buf);
/**
* <p>Formats a {@code Date} object into the
@@ -73,7 +73,7 @@ public interface DatePrinter {
* @param buf the buffer to format into
* @return the specified string buffer
*/
- public StringBuffer format(Date date, StringBuffer buf);
+ StringBuffer format(Date date, StringBuffer buf);
/**
* <p>Formats a {@code Calendar} object into the
@@ -83,7 +83,7 @@ public interface DatePrinter {
* @param buf the buffer to format into
* @return the specified string buffer
*/
- public StringBuffer format(Calendar calendar, StringBuffer buf);
+ StringBuffer format(Calendar calendar, StringBuffer buf);
// Accessors
//-----------------------------------------------------------------------
@@ -92,7 +92,7 @@ public interface DatePrinter {
*
* @return the pattern, {@link java.text.SimpleDateFormat} compatible
*/
- public String getPattern();
+ String getPattern();
/**
* <p>Gets the time zone used by this printer.</p>
@@ -101,14 +101,14 @@ public interface DatePrinter {
*
* @return the time zone
*/
- public TimeZone getTimeZone();
+ TimeZone getTimeZone();
/**
* <p>Gets the locale used by this printer.</p>
*
* @return the locale
*/
- public Locale getLocale();
+ Locale getLocale();
/**
* <p>Formats a {@code Date}, {@code Calendar} or