Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errorprone :: ThrowsUncheckedException #938

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/emissary/config/Configurator.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public interface Configurator {
Map<String, Set<String>> findStringMatchMultiMap(final String theParameter);


String findRequiredStringEntry(String theParameter) throws IllegalArgumentException;
String findRequiredStringEntry(String theParameter);

/**
* Find the first config entry matching with default value when none
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/emissary/config/ServiceConfigGuide.java
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ public Map<String, Set<String>> findStringMatchMultiMap(@Nullable final String p
* @throws IllegalArgumentException if no non-blank value is found
*/
@Override
public String findRequiredStringEntry(final String theParameter) throws IllegalArgumentException {
public String findRequiredStringEntry(final String theParameter) {
String value = findStringEntry(theParameter, null);
Validate.notBlank(value, "Missing required parameter [%s]", theParameter);
return value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ public Response postWorkBundleCompleted(@FormParam(CLIENT_NAME) String placeName
}
}

private static Response workBundleCompleted(String spaceName, String placeName, String bundleId, boolean itWorked) throws NamespaceException,
IllegalArgumentException {
private static Response workBundleCompleted(String spaceName, String placeName, String bundleId, boolean itWorked) throws NamespaceException {
// Look up the place reference
// TODO Figure out why we have to remove the key prefix now
final String workspaceNamespaceKey = spaceName.substring("WORKSPACE.WORK_SPACE.INPUT.".length());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public Response openSpaceWorker(@FormParam(CLIENT_NAME) String placeName, @FormP
}
}

private Response openTheSpace(String placeName, String spaceName) throws IllegalArgumentException, NamespaceException {
private Response openTheSpace(String placeName, String spaceName) throws NamespaceException {
// TODO Figure out why we have to remove the key prefix now
// INITIAL.FILE_PICK_UP_CLIENT.INPUT.http://localhost:8001/FilePickUpClient
String placeKey = placeName.substring("INITIAL.FILE_PICK_UP_CLIENT.INPUT.".length());
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/emissary/util/TimeUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public static String getDateAsFullISO8601(@Nullable final TemporalAccessor date)
@Nullable
@Deprecated
@SuppressWarnings("MemberName")
public static ZonedDateTime getZonedDateFromISO8601(@Nullable final String dateString) throws DateTimeParseException {
public static ZonedDateTime getZonedDateFromISO8601(@Nullable final String dateString) {
return dateString == null ? null : ZonedDateTime.parse(dateString, DATE_ISO_8601);
}

Expand Down