File tree 2 files changed +2
-5
lines changed
src/de/willuhn/jameica/hbci
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -433,10 +433,7 @@ private boolean load() throws RemoteException
433
433
cal .add (Calendar .MONTH ,monate );
434
434
435
435
// Der Tag, ab dem die naechste Periode beginnt
436
- if (stichtag > cal .getActualMaximum (Calendar .DAY_OF_MONTH ))
437
- cal .set (Calendar .DATE ,cal .getActualMaximum (Calendar .DAY_OF_MONTH ));
438
- else
439
- cal .set (Calendar .DATE , stichtag );
436
+ cal .set (Calendar .DATE , Math .min (stichtag , cal .getActualMaximum (Calendar .DAY_OF_MONTH )));
440
437
441
438
// Merken wir uns fuer den naechsten Durchlauf
442
439
from = DateUtil .startOfDay (cal .getTime ());
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ protected void paint(Composite parent) throws Exception
178
178
int width = resize + 100 ;
179
179
final int displayHeight = GUI .getDisplay ().getBounds ().height ;
180
180
Point p = this .getShell ().computeSize (width ,SWT .DEFAULT );
181
- int height = p .y >= displayHeight ? displayHeight : p . y ;
181
+ int height = Math . min ( p .y , displayHeight ) ;
182
182
this .setSize (width ,height );
183
183
}
184
184
You can’t perform that action at this time.
0 commit comments