Skip to content

Commit

Permalink
Eliminate ErrorProne warnings (GoogleContainerTools#3410)
Browse files Browse the repository at this point in the history
* Eliminate ErrorProne warnings

* Eliminate ErrorProne warnings

Co-authored-by: torePos <b2bfired8@gmail.com>
  • Loading branch information
rainyShine and v1tqm1n authored Aug 17, 2021
1 parent 2efed25 commit d401e76
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
* <pre>{@code
* image: gcr.io/example/baseimage
* platforms:
* - see {@link PlatformSpec}
* - see {@link PlatformSpec}
* - see }{@link PlatformSpec}{@code
* - see }{@link PlatformSpec}{@code
* }</pre>
*/
public class BaseImageSpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* <pre>{@code
* apiVersion: v1alpha1
* kind: BuildFile
* from: see {@link BaseImageSpec}
* from: see }{@link BaseImageSpec}{@code
* creationTime: 100
* format: docker
* environment:
Expand All @@ -60,7 +60,7 @@
* - -jar
* cmd:
* - myjar.jar
* layers: see {@link LayersSpec}
* layers: see }{@link LayersSpec}{@code
* }</pre>
*/
public class BuildFileSpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* excludes:
* - **\/goose.txt
* - **\/moose.txt
* properties: see {@link FilePropertiesSpec}
* properties: see }{@link FilePropertiesSpec}{@code
* }</pre>
*/
public class CopySpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
* <pre>{@code
* name: "my classes layer"
* files:
* - {@link CopySpec}
* - {@link CopySpec}
* - }{@link CopySpec}{@code
* - }{@link CopySpec}{@code
* // optional properties
* properties: see {@link FilePropertiesSpec}
* properties: see }{@link FilePropertiesSpec}{@code
* }</pre>
*/
@JsonDeserialize(using = JsonDeserializer.None.class) // required since LayerSpec overrides this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
* <p>Example use of this yaml snippet.
*
* <pre>{@code
* properties: see {@link FilePropertiesSpec}
* properties: see }{@link FilePropertiesSpec}{@code
* entries:
* - see {@link LayerSpec}
* - see {@link LayerSpec}
* - see }{@link LayerSpec}{@code
* - see }{@link LayerSpec}{@code
* }</pre>
*/
public class LayersSpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ static ImmutableSet<Port> portMapToSet(@Nullable Map<String, Map<String, String>
}

/**
* Converts a map of volumes strings to a set of {@link AbsoluteUnixPath}s (e.g. {@code {@code
* {"/var/log/my-app-logs":{}}} -> AbsoluteUnixPath().get("/var/log/my-app-logs")}).
* Converts a map of volumes strings to a set of {@link AbsoluteUnixPath}s (e.g. {@code
* {"/var/log/my-app-logs":{}}} -> {@code AbsoluteUnixPath().get("/var/log/my-app-logs")}).
*
* @param volumeMap the map to convert
* @return a set of {@link AbsoluteUnixPath}s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ private static String buildAndRun(
assertThat(new Command("docker", "run", "--rm", id).run()).isEqualTo(output);

} catch (InvalidImageReferenceException ex) {
fail("error replacing tag with digest");
throw new AssertionError("error replacing tag with digest", ex);
}

return output;
Expand Down

0 comments on commit d401e76

Please sign in to comment.