You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by sg...@apache.org on 2008/01/23 22:26:09 UTC
svn commit: r614680 -
/commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/environment/DefaultProcessingEnvironment.java
Author: sgoeschl
Date: Wed Jan 23 13:25:58 2008
New Revision: 614680
URL: http://svn.apache.org/viewvc?rev=614680&view=rev
Log:
Fixed one of the two compiler warnings when compiling under JDK 1.5
Modified:
commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/environment/DefaultProcessingEnvironment.java
Modified: commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/environment/DefaultProcessingEnvironment.java
URL: http://svn.apache.org/viewvc/commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/environment/DefaultProcessingEnvironment.java?rev=614680&r1=614679&r2=614680&view=diff
==============================================================================
--- commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/environment/DefaultProcessingEnvironment.java (original)
+++ commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/environment/DefaultProcessingEnvironment.java Wed Jan 23 13:25:58 2008
@@ -77,8 +77,8 @@
protected Map createProcEnvironment() throws IOException {
if (procEnvironment == null) {
try {
- Method getenvs = System.class.getMethod( "getenv", null );
- Map env = (Map) getenvs.invoke( null, null );
+ Method getenvs = System.class.getMethod( "getenv", (java.lang.Class[]) null );
+ Map env = (Map) getenvs.invoke( null, (java.lang.Object[]) null );
procEnvironment = new HashMap( env );
} catch ( NoSuchMethodException e ) {
// ok, just not on JDK 1.5