Warnings Cleanup in java.util. (original) (raw)

Michael Barker mikeb01 at gmail.com
Thu Dec 1 16:11:46 PST 2011


Trying once more with a .txt extension. If that fails I'll inline the patch.

Mike.

On Fri, Dec 2, 2011 at 12:06 AM, Michael Barker <mikeb01 at gmail.com> wrote:

Looks like the list software has stripped off the attachments from my previous mail (my outbox shows them attached).

Here's a second attempt. On Thu, Dec 1, 2011 at 11:58 PM, Michael Barker <mikeb01 at gmail.com> wrote: Hi,

Here is the output of our (unfortunately short) hack session.  There are warnings fixed in 4 files.  A patch is included in each.  Mostly just generics and deprecation warnings. Regards, Michael Barker. Contributor/UserId: mikeb2701 -------------- next part -------------- diff -r 43a630f11af6 src/share/classes/java/util/jar/JarFile.java --- a/src/share/classes/java/util/jar/JarFile.java Wed Nov 30 13:11:16 2011 -0800 +++ b/src/share/classes/java/util/jar/JarFile.java Thu Dec 01 23:50:32 2011 +0000 @@ -183,7 +183,7 @@ } else { man = new Manifest(super.getInputStream(manEntry)); }

@@ -233,7 +233,7 @@ * Returns an enumeration of the zip file entries. */ public Enumeration entries() {

@@ -608,7 +608,7 @@ }

     // screen out entries which are never signed

@@ -649,7 +649,7 @@ * JAR file has no signed content. Is there a non-signing * code source? */

@@ -658,7 +658,7 @@ }

 private Enumeration<String> unsignedEntryNames() {

-------------- next part -------------- diff -r 43a630f11af6 src/share/classes/java/util/logging/LogManager.java --- a/src/share/classes/java/util/logging/LogManager.java Wed Nov 30 13:11:16 2011 -0800 +++ b/src/share/classes/java/util/logging/LogManager.java Thu Dec 01 23:51:52 2011 +0000 @@ -179,10 +179,10 @@ cname = System.getProperty("java.util.logging.manager"); if (cname != null) { try {

@@ -200,8 +200,8 @@

                 // Adding the global Logger. Doing so in the Logger.<clinit>
                 // would deadlock with the LogManager.<clinit>.

@@ -415,7 +415,7 @@ for (int i = 0; i < names.length; i++) { String word = names[i]; try {

@@ -782,11 +782,11 @@ // responsibility to initialize the logging configuration, by // calling readConfiguration(InputStream) with a suitable stream. try {

@@ -837,9 +837,9 @@ // the global handlers, if they haven't been initialized yet. initializedGlobalHandlers = true; }

@@ -1024,7 +1024,7 @@ String val = getProperty(name); try { if (val != null) {

@@ -1045,7 +1045,7 @@ String val = getProperty(name); try { if (val != null) {

@@ -1163,9 +1163,9 @@ // Private method to be called when the configuration has // changed to apply any level settings to any pre-existing loggers. synchronized private void setLevelsOnExistingLoggers() {

-------------- next part -------------- diff -r 43a630f11af6 src/share/classes/java/util/prefs/Preferences.java --- a/src/share/classes/java/util/prefs/Preferences.java Wed Nov 30 13:11:16 2011 -0800 +++ b/src/share/classes/java/util/prefs/Preferences.java Thu Dec 01 23:51:06 2011 +0000 @@ -413,7 +413,7 @@ * @throws IllegalArgumentException if the package has node preferences * node associated with it. */

-------------- next part -------------- diff -r 43a630f11af6 src/share/classes/java/util/prefs/XmlSupport.java --- a/src/share/classes/java/util/prefs/XmlSupport.java Wed Nov 30 13:11:16 2011 -0800 +++ b/src/share/classes/java/util/prefs/XmlSupport.java Thu Dec 01 23:51:21 2011 +0000 @@ -106,7 +106,7 @@ xmlRoot.setAttribute("type", (p.isUserNode() ? "user" : "system"));

     // Get bottom-up list of nodes from p to root, excluding root

@@ -116,7 +116,7 @@ for (int i=ancestors.size()-1; i >= 0; i--) { e.appendChild(doc.createElement("map")); e = (Element) e.appendChild(doc.createElement("node"));

@@ -339,17 +339,17 @@ * @throws IOException if writing to the specified output stream * results in an IOException. */

@@ -368,7 +368,7 @@ * @throws InvalidPreferencesFormatException Data on input stream does not * constitute a valid XML document with the mandated document type. */



More information about the jdk8-dev mailing list