Skip to content

Commit c9a0352

Browse files
committed
no message
1 parent 84bea05 commit c9a0352

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Assignment2/src/academy/pocu/comp2500/assignment2/ProductOption.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,15 @@ public class ProductOption extends Product {
99
protected static final int ADD_COST = 5;
1010

1111
protected ProductOption() {
12-
12+
1313
}
1414

1515
public void addAperture(Aperture aperture) {
1616
this.apertures.add(aperture);
1717

1818
if (aperture.isValid()
19-
&& aperture.getX() >= 0
20-
&& aperture.getY() >= 0
21-
&& aperture.getWidth() > 0
22-
&& aperture.getHeight() > 0
19+
&& aperture.getX() >= 0 && aperture.getY() >= 0
20+
&& aperture.getWidth() > 0 && aperture.getHeight() > 0
2321
&& aperture.getX() + aperture.getWidth() <= super.width
2422
&& aperture.getY() + aperture.getHeight() <= super.height) {
2523
super.price += ADD_COST;

0 commit comments

Comments
 (0)