subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hwri...@apache.org
Subject svn commit: r905872 - /subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/Revision.java
Date Wed, 03 Feb 2010 02:28:03 GMT
Author: hwright
Date: Wed Feb  3 02:27:59 2010
New Revision: 905872

URL: http://svn.apache.org/viewvc?rev=905872&view=rev
Log:
* subversion/bindings/javahl/src/org/apache/subversion/javahl/Revision.java:
  Remove the deprecated public constructor and update the remaining protected
  contructor and all callers.

Modified:
    subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/Revision.java

Modified: subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/Revision.java
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/Revision.java?rev=905872&r1=905871&r2=905872&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/Revision.java
(original)
+++ subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/Revision.java
Wed Feb  3 02:27:59 2010
@@ -47,22 +47,10 @@
     protected int revKind;
 
     /**
-     * Create a new revision
-     * @deprecated
-     * @param kind  kind of revision
-     */
-    public Revision(int kind)
-    {
-        this(kind, true);
-    }
-
-    /**
      * Internally create a new revision
      * @param kind    kind of revision
-     * @param marker  marker to differentiate from the public deprecated
-     *                version
      */
-    protected Revision(int kind, boolean marker)
+    protected Revision(int kind)
     {
         if (kind < RevisionKind.unspecified || kind > RevisionKind.head)
             throw new IllegalArgumentException(
@@ -158,33 +146,32 @@
     /**
      * last commited revision
      */
-    public static final Revision HEAD = new Revision(Kind.head, true);
+    public static final Revision HEAD = new Revision(Kind.head);
 
     /**
      * first existing revision
      */
-    public static final Revision START = new Revision(Kind.unspecified, true);
+    public static final Revision START = new Revision(Kind.unspecified);
 
     /**
      * last committed revision, needs working copy
      */
-    public static final Revision COMMITTED = new Revision(Kind.committed,
-                                                          true);
+    public static final Revision COMMITTED = new Revision(Kind.committed);
 
     /**
      * previous committed revision, needs working copy
      */
-    public static final Revision PREVIOUS = new Revision(Kind.previous, true);
+    public static final Revision PREVIOUS = new Revision(Kind.previous);
 
     /**
      * base revision of working copy
      */
-    public static final Revision BASE = new Revision(Kind.base, true);
+    public static final Revision BASE = new Revision(Kind.base);
 
     /**
      * working version in working copy
      */
-    public static final Revision WORKING = new Revision(Kind.working, true);
+    public static final Revision WORKING = new Revision(Kind.working);
 
     /**
      * Marker revision number for no real revision
@@ -213,7 +200,7 @@
          */
         public Number(long number)
         {
-            super(Kind.number, true);
+            super(Kind.number);
             if (number < 0)
                 throw new IllegalArgumentException
                     ("Invalid (negative) revision number: " + number);
@@ -278,7 +265,7 @@
          */
         public DateSpec(Date date)
         {
-            super(Kind.date, true);
+            super(Kind.date);
             if (date == null)
                 throw new IllegalArgumentException("a date must be specified");
             revDate = date;



Mime
View raw message