Skip to Content.
Sympa Menu

notify-dpml - svn commit: r1352 - development/main/transit/handler/src/main/net/dpml/transit/artifact

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell AT netcompartner.com
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r1352 - development/main/transit/handler/src/main/net/dpml/transit/artifact
  • Date: Mon, 03 Jan 2005 08:42:53 +0100

Author: mcconnell
Date: Mon Jan 3 08:42:52 2005
New Revision: 1352

Modified:

development/main/transit/handler/src/main/net/dpml/transit/artifact/MavenResourceHost.java

development/main/transit/handler/src/main/net/dpml/transit/artifact/RequestIdentifier.java
Log:
checkstyle

Modified:
development/main/transit/handler/src/main/net/dpml/transit/artifact/MavenResourceHost.java
==============================================================================
---
development/main/transit/handler/src/main/net/dpml/transit/artifact/MavenResourceHost.java
(original)
+++
development/main/transit/handler/src/main/net/dpml/transit/artifact/MavenResourceHost.java
Mon Jan 3 08:42:52 2005
@@ -433,6 +433,9 @@
private static final class NullTrustManager
implements X509TrustManager
{
+ /**
+ * Empty certificate sequence.
+ */
private static final X509Certificate[] EMPTY_CERTS = new
X509Certificate[0];

/**

Modified:
development/main/transit/handler/src/main/net/dpml/transit/artifact/RequestIdentifier.java
==============================================================================
---
development/main/transit/handler/src/main/net/dpml/transit/artifact/RequestIdentifier.java
(original)
+++
development/main/transit/handler/src/main/net/dpml/transit/artifact/RequestIdentifier.java
Mon Jan 3 08:42:52 2005
@@ -20,22 +20,58 @@

import java.net.InetAddress;

+/**
+ * A request identifier.
+ */
final class RequestIdentifier
{
+ /**
+ * Used in hashcode calculation.
+ */
private static final int MAGIC_NUMBER = 72349724;

- private InetAddress m_address;
- private int m_port;
- private String m_prompt;
- private String m_protocol;
- private String m_scheme;
-
- RequestIdentifier( InetAddress addr, int port,
+ /**
+ * The internet address.
+ */
+ private final InetAddress m_address;
+
+ /**
+ * The port.
+ */
+ private final int m_port;
+
+ /**
+ * The prompt.
+ */
+ private final String m_prompt;
+
+ /**
+ * The protocol.
+ */
+ private final String m_protocol;
+
+ /**
+ * The scheme.
+ */
+ private final String m_scheme;
+
+ /**
+ * Creation of a new request identifier.
+ * @param address the address
+ * @param port the port
+ * @param protocol the protocol
+ * @param scheme the scheme
+ * @param prompt the prompt
+ * @exception NullPointerException if address, protocol, scheme or
+ * or prompt arguments are null
+ */
+ RequestIdentifier( InetAddress address, int port,
String protocol, String scheme, String prompt )
+ throws NullPointerException
{
- if( addr == null )
+ if( address == null )
{
- throw new NullPointerException( "addr" );
+ throw new NullPointerException( "address" );
}
if( protocol == null )
{
@@ -49,13 +85,18 @@
{
throw new NullPointerException( "prompt" );
}
- m_address = addr;
+ m_address = address;
m_port = port;
m_protocol = protocol;
m_prompt = prompt;
m_scheme = scheme;
}

+ /**
+ * Test for equality.
+ * @param obj the object to test against
+ * @return true if this object is the same as the supplied object
+ */
public boolean equals( Object obj )
{
if( !( obj instanceof RequestIdentifier ) )
@@ -88,6 +129,10 @@
return true;
}

+ /**
+ * Return the hascode for this instance.
+ * @return the hashcode
+ */
public int hashCode()
{
int hash = MAGIC_NUMBER >>> m_port;
@@ -98,6 +143,10 @@
return hash;
}

+ /**
+ * Return the string representation of this instance.
+ * @return the string value
+ */
public String toString()
{
StringBuffer b = new StringBuffer();



  • svn commit: r1352 - development/main/transit/handler/src/main/net/dpml/transit/artifact, mcconnell, 01/03/2005

Archive powered by MHonArc 2.6.24.

Top of Page