#1001 fix intermittent test failure (#1008)

This commit is contained in:
Michele Giacobazzi 2019-10-15 18:37:35 +02:00 committed by Ilkka Seppälä
parent c438ec0557
commit 27c131c2cb

View File

@ -28,14 +28,14 @@ package com.iluwatar.spatialpartition;
*/
public class Rect {
int x;
int y;
int width;
int height;
double x;
double y;
double width;
double height;
//(x,y) - centre of rectangle
Rect(int x, int y, int width, int height) {
Rect(double x, double y, double width, double height) {
this.x = x;
this.y = y;
this.width = width;