Skip to content

Commit 528a945

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents d834de3 + e065d94 commit 528a945

275 files changed

Lines changed: 7187 additions & 968 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,9 @@ spring-check-if-a-property-is-null/.mvn/wrapper/maven-wrapper.properties
4242
*.springBeans
4343

4444
20171220-JMeter.csv
45+
46+
.factorypath
47+
dependency-reduced-pom.xml
48+
*.so
49+
*.dylib
50+
*.dll

core-java/src/main/java/com/baeldung/linkedlist/MiddleElementLookup.java renamed to algorithms/src/main/java/com/baeldung/algorithms/middleelementlookup/MiddleElementLookup.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
package com.baeldung.linkedlist;
1+
package com.baeldung.algorithms.middleelementlookup;
22

33
import java.util.LinkedList;
44
import java.util.Optional;
55

6-
import com.baeldung.linkedlist.Node;
7-
86
public class MiddleElementLookup {
97

108
public static Optional<String> findMiddleElementLinkedList(LinkedList<String> linkedList) {

core-java/src/main/java/com/baeldung/linkedlist/Node.java renamed to algorithms/src/main/java/com/baeldung/algorithms/middleelementlookup/Node.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.baeldung.linkedlist;
1+
package com.baeldung.algorithms.middleelementlookup;
22

33
public class Node {
44
private Node next;

core-java/src/test/java/com/baeldung/linkedlist/MiddleElementLookupUnitTest.java renamed to algorithms/src/test/java/algorithms/MiddleElementLookupUnitTest.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
package com.baeldung.linkedlist;
1+
package algorithms;
22

3-
import static org.junit.Assert.assertEquals;
4-
import static org.junit.Assert.assertFalse;
3+
import com.baeldung.algorithms.middleelementlookup.MiddleElementLookup;
4+
import com.baeldung.algorithms.middleelementlookup.Node;
5+
import org.junit.Test;
56

67
import java.util.LinkedList;
78

8-
import org.junit.Test;
9+
import static org.junit.Assert.assertEquals;
10+
import static org.junit.Assert.assertFalse;
911

1012
public class MiddleElementLookupUnitTest {
1113

‎antlr/pom.xml‎

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<artifactId>antlr</artifactId>
5+
<name>antlr</name>
6+
7+
<parent>
8+
<groupId>com.baeldung</groupId>
9+
<artifactId>parent-modules</artifactId>
10+
<version>1.0.0-SNAPSHOT</version>
11+
</parent>
12+
13+
<build>
14+
<plugins>
15+
<plugin>
16+
<groupId>org.antlr</groupId>
17+
<artifactId>antlr4-maven-plugin</artifactId>
18+
<version>${antlr.version}</version>
19+
<executions>
20+
<execution>
21+
<goals>
22+
<goal>antlr4</goal>
23+
</goals>
24+
</execution>
25+
</executions>
26+
</plugin>
27+
<plugin>
28+
<groupId>org.codehaus.mojo</groupId>
29+
<artifactId>build-helper-maven-plugin</artifactId>
30+
<version>${mojo.version}</version>
31+
<executions>
32+
<execution>
33+
<phase>generate-sources</phase>
34+
<goals>
35+
<goal>add-source</goal>
36+
</goals>
37+
<configuration>
38+
<sources>
39+
<source>${basedir}/target/generated-sources/antlr4</source>
40+
</sources>
41+
</configuration>
42+
</execution>
43+
</executions>
44+
</plugin>
45+
</plugins>
46+
</build>
47+
<dependencies>
48+
<dependency>
49+
<groupId>org.antlr</groupId>
50+
<artifactId>antlr4-runtime</artifactId>
51+
<version>${antlr.version}</version>
52+
</dependency>
53+
<dependency>
54+
<groupId>junit</groupId>
55+
<artifactId>junit</artifactId>
56+
<version>${junit.version}</version>
57+
<scope>test</scope>
58+
</dependency>
59+
</dependencies>
60+
<properties>
61+
<java.version>1.8</java.version>
62+
<antlr.version>4.7.1</antlr.version>
63+
<junit.version>4.12</junit.version>
64+
<mojo.version>3.0.0</mojo.version>
65+
</properties>
66+
</project>

0 commit comments

Comments
 (0)