src/share/jaxws_classes/com/sun/xml/internal/messaging/saaj/soap/JpegDataContentHandler.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2012, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -42,11 +42,11 @@
*/
public class JpegDataContentHandler
extends Component
implements DataContentHandler {
- public final String STR_SRC = "java.awt.Image";
+ public static final String STR_SRC = "java.awt.Image";
/**
* return the DataFlavors for this <code>DataContentHandler</code>
* @return The DataFlavors.
*/
@@ -123,11 +123,11 @@
throw new IOException(
"Invalid content type \""
+ mimeType
+ "\" for ImageContentHandler");
- if (obj.equals(null)) {
+ if (obj == null) {
throw new IOException("Null object for ImageContentHandler");
}
try {
BufferedImage bufImage = null;