From 79113a373b178f5747ea9e7f9ffd837e609efa17 Mon Sep 17 00:00:00 2001 From: vijaykiran Date: Mon, 31 Oct 2011 12:15:41 +0100 Subject: [PATCH] Updated formatting and added license headers. --- .../jclouds/cloudstack/domain/SshKeyPair.java | 22 +++++++++++++++++++ .../features/SSHKeyPairAsyncClient.java | 3 +++ .../cloudstack/features/SSHKeyPairClient.java | 21 +++++++++++++++++- .../options/ListSSHKeyPairsOptions.java | 3 +++ .../features/SSHKeyPairAsyncClientTest.java | 4 +--- .../features/SSHKeyPairClientLiveTest.java | 2 +- 6 files changed, 50 insertions(+), 5 deletions(-) diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/SshKeyPair.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/SshKeyPair.java index ca181ea0e7..3ac0512048 100644 --- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/SshKeyPair.java +++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/SshKeyPair.java @@ -1,7 +1,29 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + package org.jclouds.cloudstack.domain; import com.google.gson.annotations.SerializedName; +/** + * @author Vijay Kiran + */ public class SSHKeyPair implements Comparable { public static Builder builder() { diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SSHKeyPairAsyncClient.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SSHKeyPairAsyncClient.java index 13869828a8..85475ba757 100644 --- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SSHKeyPairAsyncClient.java +++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SSHKeyPairAsyncClient.java @@ -40,6 +40,9 @@ import com.google.common.util.concurrent.ListenableFuture; @RequestFilters(QuerySigner.class) @QueryParams(keys = "response", values = "json") +/** + * @author Vijay Kiran + */ public interface SSHKeyPairAsyncClient { /** * @see org.jclouds.cloudstack.features.SSHKeyPairClient#listSSHKeyPairs diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SSHKeyPairClient.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SSHKeyPairClient.java index a6d768fab2..b54ead1b5c 100644 --- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SSHKeyPairClient.java +++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SSHKeyPairClient.java @@ -1,3 +1,22 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + package org.jclouds.cloudstack.features; import java.util.Set; @@ -11,7 +30,7 @@ import org.jclouds.concurrent.Timeout; * Provides synchronous access to CloudStack SSHKeyPair features. *

* - * @author Adrian Cole + * @author Vijay Kiran * @see diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/options/ListSSHKeyPairsOptions.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/options/ListSSHKeyPairsOptions.java index 781b9a793e..80f6a6f423 100644 --- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/options/ListSSHKeyPairsOptions.java +++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/options/ListSSHKeyPairsOptions.java @@ -22,6 +22,9 @@ import org.jclouds.http.options.BaseHttpRequestOptions; import com.google.common.collect.ImmutableSet; +/** + * @author Vijay Kiran + */ public class ListSSHKeyPairsOptions extends BaseHttpRequestOptions { public static final ListSSHKeyPairsOptions NONE = new ListSSHKeyPairsOptions(); diff --git a/sandbox-apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/SSHKeyPairAsyncClientTest.java b/sandbox-apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/SSHKeyPairAsyncClientTest.java index 560732e2d2..09c060120d 100644 --- a/sandbox-apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/SSHKeyPairAsyncClientTest.java +++ b/sandbox-apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/SSHKeyPairAsyncClientTest.java @@ -36,10 +36,8 @@ import com.google.inject.TypeLiteral; /** * Tests behavior of {@code SSHKeyPairAsyncClient} * - * @author Adrian Cole + * @author Vijay Kiran */ -// NOTE:without testName, this will not call @Before* and fail w/NPE during -// surefire @Test(groups = "unit", testName = "SSHKeyPairAsyncClientTest") public class SSHKeyPairAsyncClientTest extends BaseCloudStackAsyncClientTest { diff --git a/sandbox-apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/SSHKeyPairClientLiveTest.java b/sandbox-apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/SSHKeyPairClientLiveTest.java index 05a7b40bd5..4faa649fdb 100644 --- a/sandbox-apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/SSHKeyPairClientLiveTest.java +++ b/sandbox-apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/SSHKeyPairClientLiveTest.java @@ -28,7 +28,7 @@ import org.testng.annotations.Test; /** * Tests behavior of {@code SSHKeyPairClient} * - * @author Adrian Cole + * @author Vijay Kiran */ @Test(groups = "live", singleThreaded = true, testName = "SSHKeyPairClientLiveTest") public class SSHKeyPairClientLiveTest extends BaseCloudStackClientLiveTest {