Skip to content

Commit

Permalink
Merge pull request #239 from jenkinsci/actions
Browse files Browse the repository at this point in the history
Fix some warnings
  • Loading branch information
uhafner authored Oct 23, 2019
2 parents e1c690e + ff7822a commit 391bf1c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: GitHub Actions

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:

jobs:
build:
Expand Down
19 changes: 5 additions & 14 deletions src/test/java/edu/hm/hafner/util/ResourceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,12 @@ protected byte[] readAllBytes(final String fileName) {
}

/**
* Reads the contents of the desired resource. The rules for searching resources associated with this test class are
* implemented by the defining {@linkplain ClassLoader class loader} of this test class. This method delegates to
* this object's class loader. If this object was loaded by the bootstrap class loader, the method delegates to
* {@link ClassLoader#getSystemResource}.
* <p>
* Before delegation, an absolute resource name is constructed from the given resource name using this algorithm:
* Reads all the bytes from a file. The method ensures that the file is closed when all bytes have been read or an
* I/O error, or other runtime exception, is thrown.
*
* <p> Note that this method is intended for simple cases where it is
* convenient to read all bytes into a byte array. It is not intended for reading in large files.
* </p>
* <ul>
* <li> If the {@code name} begins with a {@code '/'} ({@code '&#92;u002f' }), then the absolute name of the
* resource is the portion of the {@code name} following the {@code '/'}.</li>
* <li> Otherwise, the absolute name is of the following form:
* <blockquote> {@code modified_package_name/name} </blockquote>
* <p> Where the {@code modified_package_name} is the package name of this object with {@code '/'}
* substituted for {@code '.'} ({@code '&#92;u002e' }).</li>
* </ul>
*
* @param path
* path of the desired resource
Expand Down

0 comments on commit 391bf1c

Please sign in to comment.