harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r901716 - /harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/util/Properties.java
Date Thu, 21 Jan 2010 14:17:42 GMT
Author: hindessm
Date: Thu Jan 21 14:17:42 2010
New Revision: 901716

URL: http://svn.apache.org/viewvc?rev=901716&view=rev
Log:
Fixing javadoc and rename variable of consistency.

Modified:
    harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/util/Properties.java

Modified: harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/util/Properties.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/util/Properties.java?rev=901716&r1=901715&r2=901716&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/util/Properties.java
(original)
+++ harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/util/Properties.java
Thu Jan 21 14:17:42 2010
@@ -591,7 +591,7 @@
 	 * @exception ClassCastException
 	 *                when the key or value of a mapping is not a String
 	 */
-	public synchronized void store(OutputStream out, String comments)
+	public synchronized void store(OutputStream out, String comment)
 			throws IOException {
 		if (lineSeparator == null) {
 			lineSeparator = AccessController
@@ -600,9 +600,9 @@
 
 		StringBuilder buffer = new StringBuilder(200);
 		OutputStreamWriter writer = new OutputStreamWriter(out, "ISO8859_1"); //$NON-NLS-1$
-		if (comments != null) {
+		if (comment != null) {
             writer.write("#"); //$NON-NLS-1$
-            writer.write(comments);
+            writer.write(comment);
 			writer.write(lineSeparator); 
         }
         writer.write("#"); //$NON-NLS-1$
@@ -628,21 +628,21 @@
      * 
      * @param writer
      *            the writer
-     * @param comments
+     * @param comment
      *            the comment
      * @throws IOException 
      *            if any I/O exception occurs
      * @since 1.6 
      */
-    public synchronized void store(Writer writer, String comments) throws IOException {
+    public synchronized void store(Writer writer, String comment) throws IOException {
         if (lineSeparator == null) {
             lineSeparator = AccessController
                     .doPrivileged(new PriviAction<String>("line.separator")); //$NON-NLS-1$
         }
         StringBuilder buffer = new StringBuilder(200);
-        if (comments != null) {
+        if (comment != null) {
             writer.write("#"); //$NON-NLS-1$
-            writer.write(comments);
+            writer.write(comment);
             writer.write(lineSeparator); 
         }
         writer.write("#"); //$NON-NLS-1$



Mime
View raw message