harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r495973 - /harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JScrollBar.java
Date Sat, 13 Jan 2007 21:33:32 GMT
Author: hindessm
Date: Sat Jan 13 13:33:32 2007
New Revision: 495973

URL: http://svn.apache.org/viewvc?view=rev&rev=495973
Log:
Make exception messages more consistent.

Modified:
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JScrollBar.java

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JScrollBar.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JScrollBar.java?view=diff&rev=495973&r1=495972&r2=495973
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JScrollBar.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JScrollBar.java
Sat Jan 13 13:33:32 2007
@@ -121,7 +121,7 @@
         model = new DefaultBoundedRangeModel(value, extent, min, max);
 
         if (orientation != HORIZONTAL && orientation != VERTICAL) {
-            throw new IllegalArgumentException("Orientation is not HORIZONTAL or VERTICAL");
+            throw new IllegalArgumentException("orientation must be HORIZONTAL or VERTICAL");
         } 
 
         this.orientation = orientation;
@@ -161,7 +161,7 @@
 
     public void setOrientation(final int orientation) {
         if (orientation != VERTICAL && orientation != HORIZONTAL) {
-            throw new IllegalArgumentException("argument must be VERTICAL or HORIZONTAL");
+            throw new IllegalArgumentException("orientation must be HORIZONTAL or VERTICAL");
         }
         if (orientation != this.orientation) {
             int oldValue = this.orientation;



Mime
View raw message