cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r264718 - /cocoon/gsoc/rgraham/refdoc/java/org/apache/cocoon/doktor/DoktorMetadataTransformer.java
Date Tue, 30 Aug 2005 07:26:18 GMT
Author: bdelacretaz
Date: Tue Aug 30 00:26:13 2005
New Revision: 264718

URL: http://svn.apache.org/viewcvs?rev=264718&view=rev
Log:
Don't use JDK 1.5-specific features, Cocoon must compile with 1.4 at least

Modified:
    cocoon/gsoc/rgraham/refdoc/java/org/apache/cocoon/doktor/DoktorMetadataTransformer.java

Modified: cocoon/gsoc/rgraham/refdoc/java/org/apache/cocoon/doktor/DoktorMetadataTransformer.java
URL: http://svn.apache.org/viewcvs/cocoon/gsoc/rgraham/refdoc/java/org/apache/cocoon/doktor/DoktorMetadataTransformer.java?rev=264718&r1=264717&r2=264718&view=diff
==============================================================================
--- cocoon/gsoc/rgraham/refdoc/java/org/apache/cocoon/doktor/DoktorMetadataTransformer.java
(original)
+++ cocoon/gsoc/rgraham/refdoc/java/org/apache/cocoon/doktor/DoktorMetadataTransformer.java
Tue Aug 30 00:26:13 2005
@@ -58,7 +58,7 @@
     private ElementState currentElement = null;
 
     /** accumulate metadata (assuming elements which use this are not nested */
-    private Map<String, String> metadata = new HashMap<String, String>();
+    private Map metadata = new HashMap();
 
     /** Regexp for metadata parsing */
     // TODO the parsing of multiple values does not work yet, for
@@ -193,7 +193,7 @@
                 metadata.put(nameandvalue[0].trim(), nameandvalue[1].trim());
             }
              if (metadata.containsKey(DOKTOR_METADATA_KEY)) {
-                lastKey = metadata.get(DOKTOR_METADATA_KEY);
+                lastKey = (String)metadata.get(DOKTOR_METADATA_KEY);
             } else if (lastKey != null) {
                 metadata.put(DOKTOR_METADATA_KEY, lastKey);
             }            



Mime
View raw message