[Webfunds-commits] java/webfunds/sox SimpleIssuer.java

Ian Grigg iang@cypherpunks.ai
Fri, 6 Apr 2001 19:40:41 -0400 (AST)


iang        01/04/06 19:40:41

  Modified:    webfunds/sox SimpleIssuer.java
  Log:
  commented out commsAgent which appears unused

Revision  Changes    Path
1.22      +9 -7      java/webfunds/sox/SimpleIssuer.java

Index: SimpleIssuer.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/sox/SimpleIssuer.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- SimpleIssuer.java	2001/03/20 23:07:36	1.21
+++ SimpleIssuer.java	2001/04/06 23:40:41	1.22
@@ -1,5 +1,5 @@
 /*
- * $Id: SimpleIssuer.java,v 1.21 2001/03/20 23:07:36 iang Exp $
+ * $Id: SimpleIssuer.java,v 1.22 2001/04/06 23:40:41 iang Exp $
  *
  * Copyright (c) Systemics Ltd 1995-1999 on behalf of
  * the WebFunds Development Team.  All Rights Reserved.
@@ -40,7 +40,7 @@
      * The agent communicating to the server (at the "comms" level)
      * Not used?
      */
-    protected CommsAgent commsAgent;
+    private CommsAgent commsAgent;
 
    /**
      * The agent communicating to the server (at the "basic" level)
@@ -99,9 +99,9 @@
         this.signer = signer;
         if (signer == null)
             throw new IllegalArgumentException("signer <null>");
-        commsAgent  = agent;
-        if (commsAgent == null)
-            throw new IllegalArgumentException("commsAgent <null>");
+        // commsAgent  = agent;
+        if (agent == null)
+            throw new IllegalArgumentException("agent <null>");
         basicAgent  = new BasicAgent(agent);
 
         logmsg("SimpleIssuer(" + name + ", signer, " + agent + ", bug)");
@@ -111,7 +111,9 @@
     {
         this.name   = name;
         this.signer = signer;
-        commsAgent  = agent;
+        // commsAgent  = agent;
+        if (agent == null)
+            throw new IllegalArgumentException("agent <null>");
         basicAgent  = new BasicAgent(agent);
 
     }
@@ -511,7 +513,7 @@
 
     public String toString()
     {
-        String retval = "SimpleIssuer " + name + ": " + commsAgent;
+        String retval = "SimpleIssuer " + name + ": " + basicAgent;
 
         //retval += "\tName: "+name +"\n";
         //retval += "\tBasic Agent: "+basicAgent+"\n";