leedaekyu / kaptcha

Automatically exported from code.google.com/p/kaptcha
Other
0 stars 0 forks source link

JPG image creation - patch #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Classes from com.sun.image.codec.jpeg.* is deprecated
    [javac]
D:\dev\eclipse-workspace\kaptcha\src\java\com\google\code\kaptcha\se
rvlet\KaptchaServlet.java:18: warning: com.sun.image.codec.jpeg.JPEGCodec
is Sun
 proprietary API and may be removed in a future release
    [javac] import com.sun.image.codec.jpeg.JPEGCodec;
    [javac]                                ^

Attached is a patch that replace them with ImageIO to generate the JPG image.

Original issue reported on code.google.com by cliffano on 11 Mar 2008 at 11:51

Attachments:

GoogleCodeExporter commented 8 years ago
You replaced tabs with spaces. Please upload a patch that doesn't do that. ;-)

Original comment by latch...@gmail.com on 11 Mar 2008 at 9:37

GoogleCodeExporter commented 8 years ago
Take 2, patch with the tabs preserved.

Original comment by cliffano on 12 Mar 2008 at 1:11

Attachments:

GoogleCodeExporter commented 8 years ago
did a bit of refactoring on this patch. there was already an init() method.

Original comment by latch...@gmail.com on 13 Mar 2008 at 7:16