File: 01_nntpconnection_old_constructor_compatibility.patch

package info (click to toggle)
libgnuinet-java 1.1-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,368 kB
  • ctags: 1,710
  • sloc: java: 12,475; sh: 5,408; makefile: 218; xml: 126
file content (26 lines) | stat: -rw-r--r-- 1,089 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- source/gnu/inet/nntp/NNTPConnection.java~	2004-08-19 23:27:07.000000000 +0200
+++ source/gnu/inet/nntp/NNTPConnection.java	2004-10-12 16:07:36.341024960 +0200
@@ -149,6 +149,23 @@
    * Creates a new connection object.
    * @param hostname the hostname or IP address of the news server
    * @param port the port to connect to
+   * @param username NOT USED ANYMORE
+   * @param password NOT USED ANYMORE
+   * @param debug whether to use debugging
+   * @deprecated username and password are not used anymore! See other constructors
+   */
+  public NNTPConnection (String hostname, int port,
+                         String username, String password,
+                         boolean debug)
+    throws IOException
+  {
+    this (hostname, port, 0, 0, debug);
+  }
+
+  /**
+   * Creates a new connection object.
+   * @param hostname the hostname or IP address of the news server
+   * @param port the port to connect to
    * @param connectionTimeout the socket connection timeout
    * @param timeout the read timeout on the socket
    * @param debug whether to use debugging