Skip to content

Commit

Permalink
Run spotlessApply
Browse files Browse the repository at this point in the history
  • Loading branch information
wwong committed Feb 8, 2024
1 parent 10d3458 commit 62361a5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
7 changes: 4 additions & 3 deletions src/main/java/org/kohsuke/github/GHRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -3565,10 +3565,11 @@ private PagedIterable<GHCodeScanningAlert> listCodeScanningAlerts(Map<String, Ob
/**
* Get code scanning alert by id
*
* <p>See:
* <a href=
* <p>
* See: <a href=
* "https://docs.github.com/en/rest/code-scanning/code-scanning?apiVersion=2022-11-28#get-a-code-scanning-alert">
* Get a code scanning alert</a></p>
* Get a code scanning alert</a>
* </p>
*
* @param id
* id of the code scanning alert
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public class GHCodeScanningAlertInstanceTest extends AbstractGitHubWireMockTest
/**
* Load a dismissed alert from the code scanning api web response
*
* @throws Exception the exception
* @throws Exception
* the exception
*/
@Before
public void setUp() throws Exception {
Expand All @@ -41,7 +42,9 @@ private GHCodeScanningAlert getAlertFromRepo(GHRepository repo) {

/**
* Test that an alert returns a list of its own instances
* @throws IOException could not get a compatible response
*
* @throws IOException
* could not get a compatible response
*/
@Test
public void testListAlertInstances() throws IOException {
Expand Down
15 changes: 9 additions & 6 deletions src/test/java/org/kohsuke/github/GHCodeScanningAlertTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ public class GHCodeScanningAlertTest extends AbstractGitHubWireMockTest {
/**
* Set up the test with alerts from a purpose-made repo
*
* @throws Exception trouble
* @throws Exception
* trouble
*/
@Before
public void setUp() throws Exception {
repo = gitHub.getRepository(GITHUB_API_TEST_ORG + "/" + REPO_NAME);
}

/**
* Check that we can get a list of alerts for a repo and that the response contains
* values in its required fields.
* Check that we can get a list of alerts for a repo and that the response contains values in its required fields.
*/
@Test
public void testListCodeScanningAlerts() {
Expand Down Expand Up @@ -82,9 +82,12 @@ public void testListCodeScanningAlerts() {
/**
* Get the data for a single alert and verify that the additional details are filled in.
*
* @throws IOException encountered an error while retrieving a response
* @throws InvocationTargetException tried to reflectively invoke a method incorrectly
* @throws IllegalAccessException tried to reflectively invoke a method that didn't want to be called
* @throws IOException
* encountered an error while retrieving a response
* @throws InvocationTargetException
* tried to reflectively invoke a method incorrectly
* @throws IllegalAccessException
* tried to reflectively invoke a method that didn't want to be called
*/
@Test
public void testGetCodeScanningAlert() throws IOException, InvocationTargetException, IllegalAccessException {
Expand Down

0 comments on commit 62361a5

Please sign in to comment.