Skip to content

Commit a611617

Browse files
committed
Move TrappingRainwater algorithm to stacks package
1 parent 40b4297 commit a611617

File tree

3 files changed

+26
-32
lines changed

3 files changed

+26
-32
lines changed

pom.xml

Lines changed: 24 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -67,36 +67,30 @@
6767
</configuration>
6868
</plugin>
6969
<plugin>
70-
<groupId>org.apache.maven.plugins</groupId>
71-
<artifactId>maven-compiler-plugin</artifactId>
72-
<version>3.14.1</version>
73-
<configuration>
74-
<release>21</release>
75-
<compilerArgs>
76-
<arg>-Xlint:all</arg>
77-
<arg>-Xlint:-auxiliaryclass</arg>
78-
<arg>-Werror</arg>
79-
</compilerArgs>
80-
</configuration>
81-
</plugin>
82-
<plugin>
83-
<groupId>org.jacoco</groupId>
84-
<artifactId>jacoco-maven-plugin</artifactId>
85-
<version>0.8.14</version>
86-
<executions>
87-
<execution>
88-
<goals>
89-
<goal>prepare-agent</goal>
90-
</goals>
91-
</execution>
92-
<execution>
93-
<id>generate-code-coverage-report</id>
94-
<phase>test</phase>
95-
<goals>
96-
<goal>report</goal>
97-
</goals>
98-
</execution>
99-
</executions>
70+
<groupId>org.apache.maven.plugins</groupId>
71+
<artifactId>maven-compiler-plugin</artifactId>
72+
<version>3.14.1</version>
73+
<configuration>
74+
<release>21</release>
75+
<fork>true</fork>
76+
<executable>${JAVA_HOME}/bin/javac</executable>
77+
<compilerArgs>
78+
<arg>-Xlint:all</arg>
79+
<arg>-Xlint:-auxiliaryclass</arg>
80+
<arg>-Werror</arg>
81+
</compilerArgs>
82+
</configuration>
83+
</plugin>
84+
<plugin>
85+
<groupId>org.apache.maven.plugins</groupId>
86+
<artifactId>maven-compiler-plugin</artifactId>
87+
<version>3.13.0</version>
88+
<configuration>
89+
<release>21</release>
90+
<jdkToolchain>
91+
<version>21</version>
92+
</jdkToolchain>
93+
</configuration>
10094
</plugin>
10195
<plugin>
10296
<groupId>org.apache.maven.plugins</groupId>

src/main/java/com/thealgorithms/searches/TrappingRainwater.java renamed to src/main/java/com/thealgorithms/stacks/TrappingRainwater.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.thealgorithms.searches;
1+
package com.thealgorithms.stacks;
22
/**
33
* Trapping Rainwater Problem
44
* Given an array of non-negative integers representing the height of bars,

src/test/java/com/thealgorithms/searches/TrappingRainwaterTest.java renamed to src/test/java/com/thealgorithms/stacks/TrappingRainwaterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.thealgorithms.searches;
1+
package com.thealgorithms.stacks;
22

33
import static org.junit.jupiter.api.Assertions.assertEquals;
44

0 commit comments

Comments
 (0)