Skip to content

Commit d5adb79

Browse files
authored
Javadoc and Actions fix (#6)
* update for bad javadoc * update actions
1 parent 7f56250 commit d5adb79

File tree

3 files changed

+40
-10
lines changed

3 files changed

+40
-10
lines changed

.github/workflows/dev-pre-mavencentral.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
- '**.xml'
1616
- '**.java'
1717
pull_request:
18-
branches: [ "dev", "main" ]
18+
branches: [ "dev" ]
1919

2020
jobs:
2121
build:

.github/workflows/pr_for_main.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Pull Request for Main Build
10+
11+
on:
12+
pull_request:
13+
branches: [ "main" ]
14+
15+
jobs:
16+
main-build:
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: write
20+
steps:
21+
- name: Checkout Taskit
22+
uses: actions/checkout@v3
23+
- name: Checkout Util
24+
uses: actions/checkout@v3
25+
with:
26+
repository: HHS/ASPR-ms-util
27+
path: util
28+
- name: Set up JDK 17
29+
uses: actions/setup-java@v3
30+
with:
31+
java-version: '17'
32+
distribution: 'temurin'
33+
cache: maven
34+
- name: Build Util
35+
run: mvn clean install -DskipTests --file util/pom.xml
36+
- name: Build Taskit
37+
run: mvn clean install -Prelease --file pom.xml

core/src/main/java/gov/hhs/aspr/ms/taskit/core/TranslationController.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package gov.hhs.aspr.ms.taskit.core;
22

33
import java.io.IOException;
4-
import java.io.Reader;
54
import java.nio.file.Path;
65
import java.util.ArrayList;
76
import java.util.Collections;
@@ -365,15 +364,9 @@ void validateTranslationEngines() {
365364

366365

367366
/**
368-
* Creates readers for each inputFilePath and passes the reader and classRef to
367+
* passes every input path and classRef to
369368
* the TranslationEngine via
370-
* {@link TranslationController#readInput(Reader, Class)}
371-
*
372-
* @throws ContractException
373-
* <ul>
374-
* <li>{@linkplain CoreTranslationError#NULL_TRANSLATION_ENGINE}
375-
* if translationEngine is null</li>
376-
* </ul>
369+
* {@link TranslationController#readInput(Path, Class, TranslationEngine)}
377370
*/
378371
public TranslationController readInput() {
379372
for (Path path : this.data.inputFilePathMap.keySet()) {

0 commit comments

Comments
 (0)