Skip to Content.
Sympa Menu

notify-dpml - svn commit: r2448 - in development/main/transit: core/handler/src/main/net/dpml/lang core/handler/src/main/net/dpml/transit/adapter core/handler/src/test/net/dpml/transit/test util/cli/src/main/net/dpml/cli

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: niclas AT hedhman.org
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r2448 - in development/main/transit: core/handler/src/main/net/dpml/lang core/handler/src/main/net/dpml/transit/adapter core/handler/src/test/net/dpml/transit/test util/cli/src/main/net/dpml/cli
  • Date: Thu, 28 Apr 2005 21:12:46 -0400

Author: niclas AT hedhman.org
Date: Thu Apr 28 21:12:43 2005
New Revision: 2448

Modified:

development/main/transit/core/handler/src/main/net/dpml/lang/DefaultInvocationHandler.java

development/main/transit/core/handler/src/main/net/dpml/transit/adapter/NetworkMonitorAdapter.java

development/main/transit/core/handler/src/main/net/dpml/transit/adapter/RepositoryMonitorAdapter.java

development/main/transit/core/handler/src/test/net/dpml/transit/test/LinkTestCase.java

development/main/transit/util/cli/src/main/net/dpml/cli/ArgumentHandler.java
Log:
formatting

Modified:
development/main/transit/core/handler/src/main/net/dpml/lang/DefaultInvocationHandler.java
==============================================================================
---
development/main/transit/core/handler/src/main/net/dpml/lang/DefaultInvocationHandler.java
(original)
+++
development/main/transit/core/handler/src/main/net/dpml/lang/DefaultInvocationHandler.java
Thu Apr 28 21:12:43 2005
@@ -85,16 +85,14 @@
{
final String name = method.getName();
final String error =
- "Delegation error while attempting to invoke the operation ["
- + name
- + "].";
+ "Delegation error while attempting to invoke the operation [" +
name + "].";

while( true )
{
if( e instanceof UndeclaredThrowableException )
{
- Throwable cause =
- ((UndeclaredThrowableException)e).getUndeclaredThrowable();
+ UndeclaredThrowableException utException =
(UndeclaredThrowableException) e;
+ Throwable cause = utException.getUndeclaredThrowable();
if( cause == null )
{
return new DelegationRuntimeException( error, e );
@@ -106,8 +104,8 @@
}
else if( e instanceof InvocationTargetException )
{
- Throwable cause =
- ((InvocationTargetException)e).getTargetException();
+ final InvocationTargetException targetException =
(InvocationTargetException) e;
+ final Throwable cause = targetException.getTargetException();
if( cause == null )
{
return new DelegationRuntimeException( error, e );

Modified:
development/main/transit/core/handler/src/main/net/dpml/transit/adapter/NetworkMonitorAdapter.java
==============================================================================
---
development/main/transit/core/handler/src/main/net/dpml/transit/adapter/NetworkMonitorAdapter.java
(original)
+++
development/main/transit/core/handler/src/main/net/dpml/transit/adapter/NetworkMonitorAdapter.java
Thu Apr 28 21:12:43 2005
@@ -18,10 +18,10 @@

package net.dpml.transit.adapter;

-import java.net.URL;
-
import net.dpml.transit.monitors.NetworkMonitor;

+import java.net.URL;
+
/**
* Adapts network events to logging messages.
*

Modified:
development/main/transit/core/handler/src/main/net/dpml/transit/adapter/RepositoryMonitorAdapter.java
==============================================================================
---
development/main/transit/core/handler/src/main/net/dpml/transit/adapter/RepositoryMonitorAdapter.java
(original)
+++
development/main/transit/core/handler/src/main/net/dpml/transit/adapter/RepositoryMonitorAdapter.java
Thu Apr 28 21:12:43 2005
@@ -18,14 +18,13 @@

package net.dpml.transit.adapter;

-import java.lang.reflect.Constructor;
+import net.dpml.transit.monitors.RepositoryMonitor;

+import java.lang.reflect.Constructor;
import java.net.URI;
import java.net.URL;
import java.net.URLClassLoader;

-import net.dpml.transit.monitors.RepositoryMonitor;
-
/**
* Adapts monitor notification events to string based messages sutable for
output
* to a logging channel.

Modified:
development/main/transit/core/handler/src/test/net/dpml/transit/test/LinkTestCase.java
==============================================================================
---
development/main/transit/core/handler/src/test/net/dpml/transit/test/LinkTestCase.java
(original)
+++
development/main/transit/core/handler/src/test/net/dpml/transit/test/LinkTestCase.java
Thu Apr 28 21:12:43 2005
@@ -18,19 +18,16 @@

package net.dpml.transit.test;

-import java.io.File;
-import java.io.InputStream;
-import java.io.OutputStream;
-
-import java.net.URI;
-import java.net.URL;
-
import junit.framework.TestCase;
-
import net.dpml.transit.artifact.ArtifactNotFoundException;
import net.dpml.transit.link.Link;
import net.dpml.transit.util.StreamUtils;

+import java.io.File;
+import java.io.InputStream;
+import java.net.URI;
+import java.net.URL;
+
/**
*
* @author <a href="http://www.dpml.net/";>The Digital Product Meta
Library</a>

Modified:
development/main/transit/util/cli/src/main/net/dpml/cli/ArgumentHandler.java
==============================================================================
---
development/main/transit/util/cli/src/main/net/dpml/cli/ArgumentHandler.java
(original)
+++
development/main/transit/util/cli/src/main/net/dpml/cli/ArgumentHandler.java
Thu Apr 28 21:12:43 2005
@@ -18,14 +18,14 @@

package net.dpml.cli;

-import java.util.ArrayList;
-import java.util.List;
-
import org.apache.commons.cli.MissingArgumentException;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException;

+import java.util.ArrayList;
+import java.util.List;
+
/**
* Command line parser that handles the establishment of metro cli options
* and separation of supplimentary parameters.



  • svn commit: r2448 - in development/main/transit: core/handler/src/main/net/dpml/lang core/handler/src/main/net/dpml/transit/adapter core/handler/src/test/net/dpml/transit/test util/cli/src/main/net/dpml/cli, niclas, 04/28/2005

Archive powered by MHonArc 2.6.24.

Top of Page