Skip to content

Commit 1fe3a09

Browse files
committed
Merge branch 'master' into doc
2 parents f548daa + 18c2b60 commit 1fe3a09

8 files changed

Lines changed: 197 additions & 198 deletions

File tree

.github/workflows/codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/setup-java@v4
1717
with:
1818
distribution: 'temurin'
19-
java-version: 11
19+
java-version: 21
2020
- uses: actions/cache@v4
2121
with:
2222
path: ~/.m2/repository

README.md

Lines changed: 184 additions & 188 deletions
Large diffs are not rendered by default.

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,9 @@
266266
<plugin>
267267
<groupId>com.qulice</groupId>
268268
<artifactId>qulice-maven-plugin</artifactId>
269-
<version>0.22.0</version>
269+
<version>0.24.0</version>
270270
<configuration>
271+
<license>file:${basedir}/LICENSE.txt</license>
271272
<excludes combine.children="append">
272273
<exclude>checkstyle:/src/site/resources/.*</exclude>
273274
<exclude>checkstyle:/src/test/resources/.*</exclude>

src/main/java/org/jpeek/Metrics.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,12 @@ public enum Metrics {
105105
* Indicates whether parameters should be included for this metric.
106106
*/
107107
private final boolean parameters;
108+
108109
/**
109110
* Mean value for the metric, if applicable.
110111
*/
111112
private final Double mean;
113+
112114
/**
113115
* Standard deviation for the metric, if applicable.
114116
*/

src/test/java/org/jpeek/ReportWithStatisticsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
final class ReportWithStatisticsTest {
2222

2323
@Test
24+
@SuppressWarnings("PMD.CloseResource")
2425
void createsXml() {
2526
final XML xml = new ReportWithStatistics(
2627
new XMLDocument("<metric/>")
@@ -47,5 +48,4 @@ void createsXml() {
4748
XhtmlMatchers.hasXPaths("/metric/statistics[total='0']")
4849
).affirm();
4950
}
50-
5151
}

src/test/java/org/jpeek/graph/XmlGraphTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,19 @@ void buildsMethodsAsNodes() {
6666
new AllOf<Iterable<Node>>(
6767
new ListOf<>(
6868
new HasValuesMatching<>(
69-
node -> node.name().equals(XmlGraphTest.METHOD_ONE)
69+
node -> XmlGraphTest.METHOD_ONE.equals(node.name())
7070
),
7171
new HasValuesMatching<>(
72-
node -> node.name().equals(XmlGraphTest.METHOD_TWO)
72+
node -> XmlGraphTest.METHOD_TWO.equals(node.name())
7373
),
7474
new HasValuesMatching<>(
75-
node -> node.name().equals(XmlGraphTest.METHOD_THREE)
75+
node -> XmlGraphTest.METHOD_THREE.equals(node.name())
7676
),
7777
new HasValuesMatching<>(
78-
node -> node.name().equals(XmlGraphTest.METHOD_FOUR)
78+
node -> XmlGraphTest.METHOD_FOUR.equals(node.name())
7979
),
8080
new HasValuesMatching<>(
81-
node -> node.name().equals(XmlGraphTest.METHOD_FIVE)
81+
node -> XmlGraphTest.METHOD_FIVE.equals(node.name())
8282
)
8383
)
8484
)

src/test/java/org/jpeek/metrics/CcmTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ void oneComponentInClassTest() throws Exception {
6969

7070
/**
7171
* Check ccm metric for mixed usage: attribute usage, methods calls.
72+
* @throws Exception
7273
* @todo #522:30min there is a 4th step for incorrect calculation: nc
7374
* in case of calling one method from another because of
7475
* `xsl:if test="$method/ops/op/text()[. = $other/ops/op/text()]"`
7576
* method name is not used for creating edge.
76-
* @throws Exception
7777
*/
7878
@Test
7979
void mixedCallsInClassTest() throws Exception {

src/test/java/org/jpeek/web/AsyncReportsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
final class AsyncReportsTest {
2828

2929
@Test
30+
@SuppressWarnings("PMD.CloseResource")
3031
void rendersOneReport() throws Exception {
3132
final ExecutorService service = Executors.newSingleThreadExecutor();
3233
final BiFunc<String, String, Func<String, Response>> bifunc = new AsyncReports(
@@ -54,5 +55,4 @@ void rendersOneReport() throws Exception {
5455
).affirm();
5556
service.shutdownNow();
5657
}
57-
5858
}

0 commit comments

Comments
 (0)