Skip to content

Commit

Permalink
squid:S1118 - Utility classes should not have public constructors (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed Ezzat authored and Francis Upton IV committed May 7, 2016
1 parent 455eb78 commit 008e5e4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
import java.util.List;

public class DeviceMappingParser {

private DeviceMappingParser() {
}

public static List<BlockDeviceMapping> parse(String customDeviceMapping) {

List<BlockDeviceMapping> deviceMappings = new ArrayList<BlockDeviceMapping>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ public class Namespaces {
public static final Namespace NS_WIN_SHELL = Namespace.get("rsp", "http://schemas.microsoft.com/wbem/wsman/1/windows/shell");
public static final Namespace NS_WSMAN_FAULT = Namespace.get("f", "http://schemas.microsoft.com/wbem/wsman/1/wsmanfault");

private Namespaces() {
}

public static final List<Namespace> mostUsed() {
return ImmutableList.of(NS_SOAP_ENV, NS_ADDRESSING, NS_WIN_SHELL, NS_WSMAN_DMTF, NS_WSMAN_MSFT);
}
Expand Down
4 changes: 4 additions & 0 deletions src/test/java/hudson/plugins/ec2/ListRegions.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
* @author Kohsuke Kawaguchi
*/
public class ListRegions {

private ListRegions() {
}

public static void main(String[] args) throws Exception {
// Jec2 ec2 = new Jec2("...","...");
// final List<RegionInfo> regions = ec2.describeRegions(null);
Expand Down

0 comments on commit 008e5e4

Please sign in to comment.