harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <g...@pobox.com>
Subject Re: svn commit: r480871 - in /harmony/enhanced/classlib/trunk/modules/luni/src: main/java/java/lang/ProcessBuilder.java main/java/org/apache/harmony/luni/platform/Environment.java test/java/org/apache/harmony/luni/tests/java/lang/SystemTest.java
Date Fri, 01 Dec 2006 15:13:03 GMT


liangyx@apache.org wrote:
> Author: liangyx
> Date: Thu Nov 30 00:19:55 2006
> New Revision: 480871
> 
> URL: http://svn.apache.org/viewvc?view=rev&rev=480871
> Log:
> Apply patch for HARMONY-2356 ([classlib][luni]The Map from System.getEnv should throw
NullPointerException while get(null) and is not modifiable.)
> 
> Modified:
>     harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/ProcessBuilder.java
>     harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/platform/Environment.java
>     harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/SystemTest.java
> 

> +
> +    public static class EnvironmentMap extends HashMap<String, String> {
> +
> +        private static final long serialVersionUID = 1L;
> +
> +        public EnvironmentMap() {
> +            super();
> +        }
> +        
> +        public EnvironmentMap(Map<String, String> map) {
> +            super(map);
> +        }
> +
> +        public boolean containsKey(Object key) {
> +            checkParam(key);
> +            return super.containsKey(key);
> +        }



I'm curious - why set the ServialVersionUID to 1?

geir

Mime
View raw message