[Webfunds-commits] java/webfunds/token ParamsPair.java

Jeroen C. van Gelderen gelderen@cypherpunks.ai
Fri, 13 Apr 2001 13:49:12 -0400 (AST)


gelderen    01/04/13 13:49:12

  Modified:    webfunds/comms CommsManager.java SingleRequestor.java
               webfunds/token ParamsPair.java
  Log:
  Remove unneccessary public modifiers from the methods declarations.

Revision  Changes    Path
1.2       +3 -3      java/webfunds/comms/CommsManager.java

Index: CommsManager.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/comms/CommsManager.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- CommsManager.java	2001/04/02 18:42:03	1.1
+++ CommsManager.java	2001/04/13 17:49:11	1.2
@@ -9,10 +9,10 @@
 /**
  * Provides SingleRequestor that can pass a single request to a server.
  *
- * @version $Id: CommsManager.java,v 1.1 2001/04/02 18:42:03 iang Exp $
+ * @version $Id: CommsManager.java,v 1.2 2001/04/13 17:49:11 gelderen Exp $
  */
 public interface CommsManager
 {
-    public SingleRequestor getSingleRequestor(URL url);
-    public SingleRequestor getSingleRequestor(String remoteHost, int port);
+    SingleRequestor getSingleRequestor(URL url);
+    SingleRequestor getSingleRequestor(String remoteHost, int port);
 }



1.2       +8 -8      java/webfunds/comms/SingleRequestor.java

Index: SingleRequestor.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/comms/SingleRequestor.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SingleRequestor.java	2001/04/02 18:42:03	1.1
+++ SingleRequestor.java	2001/04/13 17:49:11	1.2
@@ -7,7 +7,7 @@
 /**
  * Provides SingleRequestor that can pass a single request to a server.
  *
- * @version $Id: SingleRequestor.java,v 1.1 2001/04/02 18:42:03 iang Exp $
+ * @version $Id: SingleRequestor.java,v 1.2 2001/04/13 17:49:11 gelderen Exp $
  */
 public interface SingleRequestor
 {
@@ -16,15 +16,15 @@
      *  return the single packet that returns.
      *  Only getMax() bytes or less will be returned.
      */
-    public byte[] get(byte[] packet)
-        throws RawException;
+    byte[] get(byte[] packet) throws RawException;
 
+
     /** Set the maximum number of characters to be returned.  */
-    public void     setMax(int max);
-    public int      getMax();
+    void     setMax(int max);
+    int      getMax();
 
-    public String   getHost();
-    public int      getPort();
+    String   getHost();
+    int      getPort();
 
-    public boolean  isUsed();
+    boolean  isUsed();
 }



1.2       +8 -11     java/webfunds/token/ParamsPair.java

Index: ParamsPair.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/token/ParamsPair.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ParamsPair.java	2001/04/02 02:12:21	1.1
+++ ParamsPair.java	2001/04/13 17:49:11	1.2
@@ -1,5 +1,5 @@
 /*
- * $Id: ParamsPair.java,v 1.1 2001/04/02 02:12:21 iang Exp $
+ * $Id: ParamsPair.java,v 1.2 2001/04/13 17:49:11 gelderen Exp $
  *
  * Copyright (c) Systemics Inc 1995-2000 on behalf of
  * the WebFunds Development Team.  All Rights Reserved.
@@ -18,13 +18,10 @@
  */
 public interface ParamsPair
 {
-
-
-
     /**
      *  Create an uninitialised Pair.
      *  Call generate() with some params to make the contents.
-    public ParamsPair();
+    ParamsPair();
      */
 
     /**
@@ -37,19 +34,19 @@
      *  @param expiry date on which this series will expire
      *  @param log the coin size, log base 2 of quantity
      */
-    public void generate(SecureRandom sr,
-                         byte[] item,
-                         byte[] series, long expiry,
-                         byte log)
+    void generate(SecureRandom sr,
+                  byte[] item,
+                  byte[] series, long expiry,
+                  byte log)
     throws TokenKeyException;
 
     /**
      *  Get the private half of the pair, used for signing the token. 
      */
-    public AbstractPrivateParams getPrivate();
+    AbstractPrivateParams getPrivate();
 
     /**
      *  Get the public half of the pair, used for verifying the token. 
      */
-    public AbstractPublicParams getPublic();
+    AbstractPublicParams getPublic();
 }