Merged gcj-eclipse branch to trunk.
From-SVN: r120621
This commit is contained in:
@@ -38,7 +38,7 @@ exception statement from your version. */
|
||||
package java.util.jar;
|
||||
|
||||
import gnu.java.util.jar.JarUtils;
|
||||
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
@@ -60,7 +60,7 @@ public class Manifest implements Cloneable
|
||||
private final Attributes mainAttr;
|
||||
|
||||
/** A map of atrributes for all entries described in this Manifest. */
|
||||
private final Map entries;
|
||||
private final Map<String, Attributes> entries;
|
||||
|
||||
// Constructors
|
||||
|
||||
@@ -70,7 +70,7 @@ public class Manifest implements Cloneable
|
||||
public Manifest()
|
||||
{
|
||||
mainAttr = new Attributes();
|
||||
entries = new Hashtable();
|
||||
entries = new Hashtable<String, Attributes>();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -104,7 +104,7 @@ public class Manifest implements Cloneable
|
||||
public Manifest(Manifest man)
|
||||
{
|
||||
mainAttr = new Attributes(man.getMainAttributes());
|
||||
entries = new Hashtable(man.getEntries());
|
||||
entries = new Hashtable<String, Attributes>(man.getEntries());
|
||||
}
|
||||
|
||||
// Methods
|
||||
@@ -122,7 +122,7 @@ public class Manifest implements Cloneable
|
||||
* in this manifest. Adding, changing or removing from this entries map
|
||||
* changes the entries of this manifest.
|
||||
*/
|
||||
public Map getEntries()
|
||||
public Map<String, Attributes> getEntries()
|
||||
{
|
||||
return entries;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user