@@ -33,7 +33,7 @@ public class ImageBasedFrame extends Canvas {
3333
3434 private static final String FRAME_IMAGE = "frameImage" ; //$NON-NLS-1$
3535
36- private Control framedControl ;
36+ private final Control framedControl ;
3737
3838 private boolean draggable = true ;
3939 private boolean vertical = true ;
@@ -117,8 +117,9 @@ private void setFramedControlLocation() {
117117
118118 public Rectangle getHandleRect () {
119119 Rectangle handleRect = new Rectangle (0 , 0 , 0 , 0 );
120- if (!draggable || handle .isDisposed ())
120+ if (!draggable || handle .isDisposed ()) {
121121 return handleRect ;
122+ }
122123
123124 if (vertical ) {
124125 handleRect .x = w1 ;
@@ -136,8 +137,9 @@ public Rectangle getHandleRect() {
136137
137138 @ Override
138139 public Point computeSize (int wHint , int hHint ) {
139- if (framedControl == null || framedControl .isDisposed ())
140+ if (framedControl == null || framedControl .isDisposed ()) {
140141 return new Point (0 , 0 );
142+ }
141143
142144 if (vertical ) {
143145 int width = w1 + framedControl .getSize ().x + w3 ;
@@ -156,8 +158,9 @@ protected void drawFrame(PaintEvent e) {
156158 return ;
157159 }
158160
159- if (framedControl == null || framedControl .isDisposed ())
161+ if (framedControl == null || framedControl .isDisposed ()) {
160162 return ;
163+ }
161164
162165 Point inner = framedControl .getSize ();
163166 int handleWidth = (handle != null && !vertical ) ? handle .getBounds ().width
0 commit comments