Skip to content

Commit 4f75b29

Browse files
feat(objectionary#274): fix all the code offences
1 parent 4f20b48 commit 4f75b29

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/test/java/benchmarks/ProgramsBench.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public class ProgramsBench {
6262
*/
6363
private final Path home;
6464

65+
@SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors")
6566
public ProgramsBench() {
6667
try {
6768
this.home = Files.createTempDirectory("tmp");

src/test/java/fixtures/LargeXmir.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,22 @@
4343
*/
4444
public final class LargeXmir implements Scalar<XML> {
4545

46+
/**
47+
* Name of the program.
48+
*/
4649
private final String name;
4750

51+
/**
52+
* Constructor.
53+
*/
4854
public LargeXmir() {
4955
this("unknown");
5056
}
5157

58+
/**
59+
* Constructor.
60+
* @param nme Program name.
61+
*/
5262
public LargeXmir(final String nme) {
5363
this.name = nme;
5464
}

0 commit comments

Comments
 (0)