Skip to content

Commit 485b4e3

Browse files
authored
Revert "BAEL-4134"
1 parent dffa1f6 commit 485b4e3

File tree

2,492 files changed

+10370
-515690
lines changed

Some content is hidden

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

2,492 files changed

+10370
-515690
lines changed

.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,5 @@ transaction.log
8585
*-shell.log
8686

8787
apache-cxf/cxf-aegis/baeldung.xml
88-
apache-fop/src/test/resources/input.xml
89-
apache-fop/src/test/resources/output_herold.pdf
90-
apache-fop/src/test/resources/output_html2fo.pdf
91-
apache-fop/src/test/resources/output_jtidy.pdf
88+
89+
libraries-2/*.db

algorithms-miscellaneous-2/src/test/java/com/baeldung/jgrapht/GraphImageGenerationUnitTest.java

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
package com.baeldung.jgrapht;
22

33
import static org.junit.Assert.assertTrue;
4+
45
import java.awt.Color;
56
import java.awt.image.BufferedImage;
67
import java.io.File;
78
import java.io.IOException;
9+
810
import javax.imageio.ImageIO;
11+
912
import org.jgrapht.ext.JGraphXAdapter;
1013
import org.jgrapht.graph.DefaultDirectedGraph;
1114
import org.jgrapht.graph.DefaultEdge;
15+
import org.junit.After;
1216
import org.junit.Before;
1317
import org.junit.Test;
18+
1419
import com.mxgraph.layout.mxCircleLayout;
1520
import com.mxgraph.layout.mxIGraphLayout;
1621
import com.mxgraph.util.mxCellRenderer;
@@ -20,7 +25,7 @@ public class GraphImageGenerationUnitTest {
2025

2126
@Before
2227
public void createGraph() throws IOException {
23-
File imgFile = new File("src/test/resources/graph.png");
28+
File imgFile = new File("src/test/resources/graph1.png");
2429
imgFile.createNewFile();
2530
g = new DefaultDirectedGraph<String, DefaultEdge>(DefaultEdge.class);
2631
String x1 = "x1";
@@ -34,12 +39,18 @@ public void createGraph() throws IOException {
3439
g.addEdge(x3, x1);
3540
}
3641

42+
@After
43+
public void cleanup() {
44+
File imgFile = new File("src/test/resources/graph1.png");
45+
imgFile.deleteOnExit();
46+
}
47+
3748
@Test
3849
public void givenAdaptedGraph_whenWriteBufferedImage_ThenFileShouldExist() throws IOException {
3950
JGraphXAdapter<String, DefaultEdge> graphAdapter = new JGraphXAdapter<String, DefaultEdge>(g);
4051
mxIGraphLayout layout = new mxCircleLayout(graphAdapter);
4152
layout.execute(graphAdapter.getDefaultParent());
42-
File imgFile = new File("src/test/resources/graph.png");
53+
File imgFile = new File("src/test/resources/graph1.png");
4354
BufferedImage image = mxCellRenderer.createBufferedImage(graphAdapter, null, 2, Color.WHITE, true, null);
4455
ImageIO.write(image, "PNG", imgFile);
4556
assertTrue(imgFile.exists());
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/play2048/Play2048.java renamed to algorithms-miscellaneous-6/src/main/java/com/baeldung/algorithms/play2048/Play2048.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.baeldung.algorithms.play2048;
22

33
public class Play2048 {
4-
private static final int SIZE = 3;
4+
private static final int SIZE = 4;
55
private static final int INITIAL_NUMBERS = 2;
66

77
public static void main(String[] args) {

algorithms-sorting-2/src/main/java/com/baeldung/algorithms/quicksort/DutchNationalFlagPartioning.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55

66
public class DutchNationalFlagPartioning {
77

8-
public static Partition partition(int[] a, int begin, int end) {
8+
public static Partition partition(int[] input, int begin, int end) {
99
int lt = begin, current = begin, gt = end;
10-
int partitioningValue = a[begin];
10+
int partitioningValue = input[begin];
1111

1212
while (current <= gt) {
13-
int compareCurrent = compare(a[current], partitioningValue);
13+
int compareCurrent = compare(input[current], partitioningValue);
1414
switch (compareCurrent) {
1515
case -1:
16-
swap(a, current++, lt++);
16+
swap(input, current++, lt++);
1717
break;
1818
case 0:
1919
current++;
2020
break;
2121
case 1:
22-
swap(a, current, gt--);
22+
swap(input, current, gt--);
2323
break;
2424
}
2525
}

apache-avro/README.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)