Enforce newline at end of file via Checkstyle

Also address all warnings, via:

find -name \*.java | while read i; do if [ x`tail -c 1 $i` != x"" ]; then echo >> $i; fi; done
This commit is contained in:
Andrew Gaul 2012-10-28 21:15:56 -07:00
parent 7eadbf84ad
commit 93d69ece2b
1307 changed files with 1307 additions and 1306 deletions

View File

@ -100,4 +100,4 @@ public class AtmosApiMetadata extends BaseRestApiMetadata {
return this;
}
}
}
}

View File

@ -87,4 +87,4 @@ public class BYONApiMetadata extends BaseApiMetadata {
}
}
}

View File

@ -61,4 +61,4 @@ public class CacheNodeStoreModule extends AbstractModule {
}).toInstance(Suppliers.<LoadingCache<String, Node>> ofInstance(backing));
}
}
}

View File

@ -37,4 +37,4 @@ import com.google.common.annotations.Beta;
@Target(TYPE)
public @interface ConfiguresNodeStore {
}
}

View File

@ -114,4 +114,4 @@ public class YamlNodeStoreModule extends AbstractModule {
Function<YamlNode, InputStream> yamlSerializer, Function<InputStream, YamlNode> yamlDeserializer) {
return new TransformingMap<String, InputStream, YamlNode>(backing, yamlDeserializer, yamlSerializer);
}
}
}

View File

@ -209,4 +209,4 @@ public class YamlNode {
}
};
}
}

View File

@ -141,4 +141,4 @@ public class BYONComputeServiceAdapter implements JCloudsNativeComputeServiceAda
public void suspendNode(String id) {
throw new UnsupportedOperationException();
}
}
}

View File

@ -60,4 +60,4 @@ public class NodesParsedFromSupplier implements Supplier<LoadingCache<String, No
return nodes;
}
}
}

View File

@ -168,4 +168,4 @@ public class CacheNodeStoreModuleTest {
map.put(key, Node.builder().id(id).name(name).build());
store.getUnchecked(key);
}
}
}

View File

@ -193,4 +193,4 @@ public class YamlNodeStoreModuleTest {
map.put(key, new ByteArrayInputStream(String.format("id: %s\nname: %s\n", id, name).getBytes()));
store.getUnchecked(key);
}
}
}

View File

@ -84,4 +84,4 @@ public class NodesFromYamlTest {
new NodesFromYamlStream().apply(Strings2.toInputStream(""));
}
}
}

View File

@ -37,4 +37,4 @@ import javax.inject.Qualifier;
@Qualifier
public @interface CDNManagement {
}
}

View File

@ -110,4 +110,4 @@ public class CloudFilesApiMetadata extends SwiftApiMetadata {
}
}
}
}

View File

@ -94,4 +94,4 @@ public class CloudFilesAsyncBlobStore extends SwiftAsyncBlobStore {
}, service);
return returnVal;
}
}
}

View File

@ -50,4 +50,4 @@ public class EnableCDNAndCache implements Function<String, URI> {
return uri;
}
}
}

View File

@ -250,4 +250,4 @@ public class CloudFilesClientExpectTest extends BaseCloudFilesRestClientExpectTe
cdnContainerClient.setCDNStaticWebsiteError("container", "error.html");
}
}
}

View File

@ -94,4 +94,4 @@ public class CloudLoadBalancersApiMetadata extends BaseRestApiMetadata {
}
}
}

View File

@ -36,4 +36,4 @@ import javax.inject.Qualifier;
@Qualifier
public @interface LoadBalancer {
}
}

View File

@ -36,4 +36,4 @@ import javax.inject.Qualifier;
@Qualifier
public @interface Node {
}
}

View File

@ -59,4 +59,4 @@ public final class AppendAccountIdToURI implements Function<Supplier<URI>, Suppl
};
}
}
}

View File

@ -71,4 +71,4 @@ public class ConvertLB implements Function<LB, LoadBalancer> {
}
}
}
}

View File

@ -43,4 +43,4 @@ class LB extends BaseLoadBalancer<Node, LB> {
Map<String, Date> created = Maps.newLinkedHashMap();
Map<String, Date> updated = Maps.newLinkedHashMap();
Map<String, Boolean> connectionLogging = Maps.newLinkedHashMap();
}
}

View File

@ -71,4 +71,4 @@ public class UnwrapLoadBalancer implements Function<HttpResponse, LoadBalancer>,
return this;
}
}
}

View File

@ -72,4 +72,4 @@ public class UnwrapLoadBalancers implements Function<HttpResponse, Set<LoadBalan
return this;
}
}
}

View File

@ -52,4 +52,4 @@ public class CloudLoadBalancersBindLoadBalancerStrategiesByClass extends BindLoa
protected Class<? extends ListLoadBalancersStrategy> defineListLoadBalancersStrategy() {
return CloudLoadBalancersListLoadBalancersStrategy.class;
}
}
}

View File

@ -71,4 +71,4 @@ public class LoadBalancerToLoadBalancerMetadata implements Function<LoadBalancer
}));
}
}
}

View File

@ -55,4 +55,4 @@ public class CloudLoadBalancersGetLoadBalancerMetadataStrategy implements GetLoa
return converter.apply(client.getLoadBalancerClient(region).getLoadBalancer(lbId));
}
}
}

View File

@ -50,4 +50,4 @@ public class RegionUrisFromPropertiesAndAccountIDPathSuffix extends RegionIdToUR
public Map<String, Supplier<URI>> get() {
return Maps.transformValues(super.get(), filter);
}
}
}

View File

@ -129,4 +129,4 @@ public abstract class BaseCloudLoadBalancersAsyncClientTest<T> extends BaseAsync
return new CloudLoadBalancersApiMetadata();
}
}
}

View File

@ -93,4 +93,4 @@ public class CloudServersApiMetadata extends BaseRestApiMetadata {
}
}
}

View File

@ -96,4 +96,4 @@ public final class GetImageWhenStatusActivePredicateWithResult implements Predic
}).orNull();
}
}
}

View File

@ -125,4 +125,4 @@ public class CloudServersComputeServiceAdapter implements ComputeServiceAdapter<
throw new UnsupportedOperationException("suspend not supported");
}
}
}

View File

@ -53,4 +53,4 @@ public class CloudServersExpectTest extends BaseCloudServersRestClientExpectTest
}
}
}

View File

@ -101,4 +101,4 @@ public class CloudSigmaApiMetadata extends BaseRestApiMetadata {
}
}
}

View File

@ -241,4 +241,4 @@ public class CloudSigmaComputeServiceAdapter implements
public void suspendNode(String id) {
client.stopServer(id);
}
}
}

View File

@ -128,4 +128,4 @@ public class CloudSigmaComputeServiceContextModule extends
protected TemplateOptions templateOptions() {
return new CloudSigmaTemplateOptions();
}
}
}

View File

@ -86,4 +86,4 @@ public class ParseOsFamilyVersion64BitFromImageName implements Function<String,
}
}
}
}
}

View File

@ -64,4 +64,4 @@ public class PreinstalledDiskToImage implements Function<DriveInfo, Image> {
.location(locationSupplier.get()).name(drive.getName()).description(description)
.operatingSystem(builder.build()).status(Status.AVAILABLE).version("").build();
}
}
}

View File

@ -48,4 +48,4 @@ public enum AffinityType {
}
}
}
}

View File

@ -82,4 +82,4 @@ public class BlockDevice extends Device {
public String toString() {
return "[id=" + getId() + ", driveUuid=" + driveUuid + ", mediaType=" + mediaType + "]";
}
}
}

View File

@ -53,4 +53,4 @@ public enum ClaimType {
}
}
}
}

View File

@ -167,4 +167,4 @@ public class CreateDriveRequest extends Drive {
+ ", readers=" + readers + ", use=" + use + ", avoid=" + avoid
+ ", encryptionCipher=" + encryptionCipher + "]";
}
}
}

View File

@ -104,4 +104,4 @@ public abstract class Device {
public String toString() {
return "[driveUuid=" + driveUuid + ", mediaType=" + mediaType + "]";
}
}
}

View File

@ -212,4 +212,4 @@ public class Drive extends Item {
+ ", tags=" + tags + ", readers=" + readers + "]";
}
}
}

View File

@ -84,4 +84,4 @@ public class DriveData extends Drive {
Iterable<String> tags, Iterable<String> readers, Iterable<String> use) {
super(uuid, name, size, claimType, tags, readers, use);
}
}
}

View File

@ -469,4 +469,4 @@ public class DriveInfo extends Drive {
+ ", imaging=" + imaging + ", metrics=" + metrics + "]";
}
}
}

View File

@ -135,4 +135,4 @@ public class DriveMetrics {
return "[readBytes=" + readBytes + ", readRequests=" + readRequests + ", writeBytes=" + writeBytes
+ ", writeRequests=" + writeRequests + "]";
}
}
}

View File

@ -44,4 +44,4 @@ public enum DriveStatus {
}
}
}
}

View File

@ -44,4 +44,4 @@ public enum DriveType {
}
}
}
}

View File

@ -94,4 +94,4 @@ public class IDEDevice extends Device {
public String toString() {
return "[id=" + getId() + ", driveUuid=" + driveUuid + ", mediaType=" + mediaType + "]";
}
}
}

View File

@ -166,4 +166,4 @@ public class Item {
return "[uuid=" + uuid + ", name=" + name + ", use=" + use + "]";
}
}
}

View File

@ -46,4 +46,4 @@ public enum MediaType {
}
}
}
}

View File

@ -43,4 +43,4 @@ public enum Model {
return UNRECOGNIZED;
}
}
}
}

View File

@ -173,4 +173,4 @@ public class NIC {
public String toString() {
return "[dhcp=" + dhcp + ", model=" + model + ", vlan=" + vlan + ", mac=" + mac + ", block=" + block + "]";
}
}
}

View File

@ -194,4 +194,4 @@ public class ProfileInfo {
+ ", nickName=" + nickName + ", type=" + type + "]";
}
}
}

View File

@ -43,4 +43,4 @@ public enum ProfileType {
}
}
}
}

View File

@ -90,4 +90,4 @@ public class SCSIDevice extends Device {
public String toString() {
return "[id=" + getId() + ", driveUuid=" + driveUuid + ", mediaType=" + mediaType + "]";
}
}
}

View File

@ -289,4 +289,4 @@ public class Server extends Item {
+ nics + ", vnc=" + vnc + ", description=" + description + "]";
}
}
}

View File

@ -254,4 +254,4 @@ public class ServerInfo extends Server {
+ metrics + "]";
}
}
}

View File

@ -152,4 +152,4 @@ public class ServerMetrics {
+ driveMetrics + "]";
}
}
}

View File

@ -43,4 +43,4 @@ public enum ServerStatus {
}
}
}
}

View File

@ -227,4 +227,4 @@ public class StaticIPInfo {
+ nameservers + ", gateway=" + gateway + "]";
}
}
}

View File

@ -162,4 +162,4 @@ public class VLANInfo {
return "[uuid=" + uuid + ", name=" + name + ", user=" + user + "]";
}
}
}

View File

@ -101,4 +101,4 @@ public class VNC {
public String toString() {
return "[ip=" + ip + ", password=" + password + ", tls=" + tls + "]";
}
}
}

View File

@ -53,4 +53,4 @@ public class BaseDriveToMap implements Function<Drive, Map<String, String>> {
builder.put("use", Joiner.on(' ').join(from.getUse()));
return builder.build();
}
}
}

View File

@ -46,4 +46,4 @@ public class DriveDataToMap implements Function<DriveData, Map<String, String>>
public Map<String, String> apply(DriveData from) {
return renameKey(baseDriveToMap.apply(from), "use", "use");
}
}
}

View File

@ -49,4 +49,4 @@ public class KeyValuesDelimitedByBlankLinesToDriveInfo implements Function<HttpR
return null;
return Iterables.get(drives, 0);
}
}
}

View File

@ -49,4 +49,4 @@ public class KeyValuesDelimitedByBlankLinesToProfileInfo implements Function<Htt
return null;
return Iterables.get(drives, 0);
}
}
}

View File

@ -49,4 +49,4 @@ public class KeyValuesDelimitedByBlankLinesToServerInfo implements Function<Http
return null;
return Iterables.get(drives, 0);
}
}
}

View File

@ -49,4 +49,4 @@ public class KeyValuesDelimitedByBlankLinesToStaticIPInfo implements Function<Ht
return null;
return Iterables.get(drives, 0);
}
}
}

View File

@ -49,4 +49,4 @@ public class KeyValuesDelimitedByBlankLinesToVLANInfo implements Function<HttpRe
return null;
return Iterables.get(drives, 0);
}
}
}

View File

@ -56,4 +56,4 @@ public class ListOfKeyValuesDelimitedByBlankLinesToDriveInfoSet implements Funct
return ImmutableSet.<DriveInfo> of();
return ImmutableSet.copyOf(Iterables.transform(mapConverter.apply(text), mapToDrive));
}
}
}

View File

@ -57,4 +57,4 @@ public class ListOfKeyValuesDelimitedByBlankLinesToListOfMaps implements Functio
}
return maps;
}
}
}

View File

@ -56,4 +56,4 @@ public class ListOfKeyValuesDelimitedByBlankLinesToProfileInfoSet implements Fun
return ImmutableSet.<ProfileInfo> of();
return ImmutableSet.copyOf(Iterables.transform(mapConverter.apply(text), mapToProfile));
}
}
}

View File

@ -57,4 +57,4 @@ public class ListOfKeyValuesDelimitedByBlankLinesToServerInfoSet implements Func
return ImmutableSet.<ServerInfo> of();
return ImmutableSet.copyOf(Iterables.transform(mapConverter.apply(text), mapToServer));
}
}
}

View File

@ -56,4 +56,4 @@ public class ListOfKeyValuesDelimitedByBlankLinesToStaticIPInfoSet implements Fu
return ImmutableSet.<StaticIPInfo> of();
return ImmutableSet.copyOf(Iterables.transform(mapConverter.apply(text), mapToProfile));
}
}
}

View File

@ -56,4 +56,4 @@ public class ListOfKeyValuesDelimitedByBlankLinesToVLANInfoSet implements Functi
return ImmutableSet.<VLANInfo> of();
return ImmutableSet.copyOf(Iterables.transform(mapConverter.apply(text), mapToProfile));
}
}
}

View File

@ -54,4 +54,4 @@ public class ListOfMapsToListOfKeyValuesDelimitedByBlankLines implements
}));
}
}
}

View File

@ -98,4 +98,4 @@ public class MapToDevices implements Function<Map<String, String>, Map<String, ?
deviceBuilder.mediaType(MediaType.fromValue(from.get(key + ":media")));
return deviceBuilder;
}
}
}

View File

@ -113,4 +113,4 @@ public class MapToDriveInfo implements Function<Map<String, String>, DriveInfo>
metricsBuilder.writeRequests(Long.valueOf(from.get("write:requests")));
return metricsBuilder.build();
}
}
}

View File

@ -83,4 +83,4 @@ public class MapToDriveMetrics implements Function<Map<String, String>, Map<Stri
builder.writeRequests(Long.valueOf(from.get(key + ":write:requests")));
return builder.build();
}
}
}

View File

@ -55,4 +55,4 @@ public class MapToNICs implements Function<Map<String, String>, List<NIC>> {
}
return nics.build();
}
}
}

View File

@ -59,4 +59,4 @@ public class MapToProfileInfo implements Function<Map<String, String>, ProfileIn
return null;
}
}
}
}

View File

@ -90,4 +90,4 @@ public class MapToServerInfo implements Function<Map<String, String>, ServerInfo
builder.metrics(mapToMetrics.apply(from));
return builder.build();
}
}
}

View File

@ -56,4 +56,4 @@ public class MapToServerMetrics implements Function<Map<String, String>, ServerM
ServerMetrics metrics = metricsBuilder.build();
return metrics;
}
}
}

View File

@ -59,4 +59,4 @@ public class MapToStaticIPInfo implements Function<Map<String, String>, StaticIP
return null;
}
}
}
}

View File

@ -55,4 +55,4 @@ public class MapToVLANInfo implements Function<Map<String, String>, VLANInfo> {
return null;
}
}
}
}

View File

@ -34,4 +34,4 @@ public class ReturnPayload implements Function<HttpResponse, Payload> {
public Payload apply(HttpResponse from) {
return from.getPayload();
}
}
}

View File

@ -77,4 +77,4 @@ public class ServerToMap implements Function<Server, Map<String, String>> {
builder.put("use", Joiner.on(' ').join(from.getUse()));
return builder.build();
}
}
}

View File

@ -51,4 +51,4 @@ public class SplitNewlines implements Function<HttpResponse, Set<String>> {
public Set<String> apply(HttpResponse response) {
return newTreeSet(filter(Splitter.on('\n').split(returnStringIf200.apply(response)), not(equalTo(""))));
}
}
}

View File

@ -63,4 +63,4 @@ public class SplitNewlinesAndReturnSecondField extends SplitNewlines {
}), Predicates.notNull()));
}
}
}

View File

@ -82,4 +82,4 @@ public class Servers {
return Server.Builder.fromServer(in).nics(ImmutableSet.of(new NIC.Builder().model(Model.E1000).dhcp(ip).build()))
.build();
}
}
}

View File

@ -78,4 +78,4 @@ public class BindCloneDriveOptionsToPlainTextStringTest {
verify(md);
}
}
}

View File

@ -83,4 +83,4 @@ public class BindDriveDataToPlainTextStringTest {
Strings2.toStringAndClose(BindDriveDataToPlainTextStringTest.class.getResourceAsStream("/drive_data.txt")));
}
}
}

View File

@ -86,4 +86,4 @@ public class BindDriveToPlainTextStringTest {
}
}
}

View File

@ -88,4 +88,4 @@ public class BindServerToPlainTextStringTest {
assertEquals(request.getPayload().getRawContent(), CREATED_SERVER);
}
}
}

View File

@ -63,4 +63,4 @@ public class BaseDriveToMapTest {
);
}
}
}

View File

@ -66,4 +66,4 @@ public class DriveDataToMapTest {
);
}
}
}

View File

@ -76,4 +76,4 @@ public class KeyValuesDelimitedByBlankLinesToServerInfoTest {
assertEquals(FN.apply(HttpResponse.builder().statusCode(200).message("").payload(MapToServerInfoTest.class
.getResourceAsStream("/new_server.txt")).build()), MapToServerInfoTest.NEW);
}
}
}

View File

@ -62,4 +62,4 @@ public class ListOfKeyValuesDelimitedByBlankLinesToListOfMapsTest {
ImmutableList.of(ImmutableMap.of("key1", "value1", "key2", "value2"),
ImmutableMap.of("key1", "v1", "key2", "v2")));
}
}
}

Some files were not shown because too many files have changed in this diff Show More