Bug 49337

Summary: [PATCH] method disableClipping should be in PSGraphics2D class, not in AbstractPSDocumentGraphics2D
Product: XMLGraphicsCommons - Now in Jira Reporter: Julien Aymé <julien.ayme>
Component: java2DAssignee: XML Graphics Project Mailing List <general>
Status: RESOLVED FIXED    
Severity: trivial    
Priority: P2    
Version: Trunk   
Target Milestone: --   
Hardware: All   
OS: All   
Attachments: The proposed patch

Description Julien Aymé 2010-05-25 06:30:58 UTC
Created attachment 25479 [details]
The proposed patch

The field clippingDisabled is defined in PSGraphics2D class, with a default value to false.
The setter for this field is defined in the AbstractPSDocumentGraphics2D sub-class.

I think that the setter should be defined in PSGraphics2D class, so that the setter stands next to the field.

The patch is trivial: remove the method disableClipping from AbstractPSDocumentGraphics2D and put it back into PSGraphics2D.
Comment 1 Jeremias Maerki 2010-05-30 11:11:50 UTC
Makes sense. Patch applied with rev 949527 (http://svn.apache.org/viewvc?rev=949527&view=rev). Thanks for the patch.