Make interfaces with only statics into classes

This prevents instantiation.  Found via error-prone 2.3.3.
This commit is contained in:
Andrew Gaul 2019-02-23 16:34:11 +09:00
parent 53c47aa0bd
commit 8eae27c98d
3 changed files with 14 additions and 3 deletions

View File

@ -23,7 +23,11 @@ import org.jclouds.rackspace.clouddns.v1.domain.Job;
/**
* Exceptions likely to be encountered when using {@link CloudDNSApi}
*/
public interface CloudDNSExceptions {
public final class CloudDNSExceptions {
private CloudDNSExceptions() {
throw new AssertionError("intentionally not implemented");
}
/**
* A Job errored out.
*/

View File

@ -19,7 +19,11 @@ package org.jclouds.dynect.v3;
/**
* Exceptions likely to be encountered when using {@link DynECTApi}
*/
public interface DynECTExceptions {
public final class DynECTExceptions {
private DynECTExceptions() {
throw new AssertionError("intentionally not implemented");
}
/**
* You must wait until another job is finished before attempting this command
* again

View File

@ -19,7 +19,10 @@ package org.jclouds.ultradns.ws;
/**
* Exceptions likely to be encountered when using {@link UltraDNSWSApi}
*/
public interface UltraDNSWSExceptions {
public final class UltraDNSWSExceptions {
private UltraDNSWSExceptions() {
throw new AssertionError("intentionally not implemented");
}
/**
* The Zone or other resource already exists