jaxws/src/java.activation/share/classes/javax/activation/MailcapCommandMap.java
changeset 36523 116e5d5cdade
parent 30005 b2f720a258c4
child 45678 65fdff10664d
--- a/jaxws/src/java.activation/share/classes/javax/activation/MailcapCommandMap.java	Tue Mar 15 13:48:25 2016 -0700
+++ b/jaxws/src/java.activation/share/classes/javax/activation/MailcapCommandMap.java	Thu Mar 17 19:04:08 2016 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -580,8 +580,7 @@
                 // if anything goes wrong, do it the old way
                 cl = Class.forName(name);
             }
-            if (cl != null)             // XXX - always true?
-                return (DataContentHandler)cl.newInstance();
+            return (DataContentHandler) cl.newInstance();
         } catch (IllegalAccessException e) {
             if (LogSupport.isLoggable())
                 LogSupport.log("Can't load DCH " + name, e);