Skip to content

Commit

Permalink
Removed unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dwhigham committed Nov 17, 2015
1 parent 70d4f7e commit 67bdeb5
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,13 @@
import org.apache.commons.cli.Option;
import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException;

import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.logging.FileHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;

@SuppressWarnings("deprecation")
public class CommandLineParameters {

public static void main(String[] args) {
@SuppressWarnings("unused")
LoggerWrapper loggerWrapper = null;
try {
loggerWrapper = LoggerWrapper.getInstance();
Expand Down
5 changes: 1 addition & 4 deletions FlexiMonkey/src/dice/eu/fleximonkey/FCOCheckKey.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.logging.Level;
import java.util.logging.Logger;

import javax.xml.namespace.QName;
import javax.xml.ws.BindingProvider;
Expand All @@ -20,7 +17,6 @@
import com.extl.jade.user.ResourceType;
import com.extl.jade.user.SearchFilter;
import com.extl.jade.user.Server;
import com.extl.jade.user.ServerStatus;
import com.extl.jade.user.UserAPI;
import com.extl.jade.user.UserService;

Expand All @@ -30,6 +26,7 @@ public class FCOCheckKey {
public void listvmkeys(String cloudusername, String cloudpassword,
String cloudapiurl, String cloudUUID, String serverUUID) {

@SuppressWarnings("unused")
LoggerWrapper loggerWrapper = null;
try {
loggerWrapper = LoggerWrapper.getInstance();
Expand Down
3 changes: 1 addition & 2 deletions FlexiMonkey/src/dice/eu/fleximonkey/FCOListVMs.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.logging.Level;
import java.util.logging.Logger;

import javax.xml.namespace.QName;
import javax.xml.ws.BindingProvider;
Expand All @@ -28,6 +26,7 @@ public class FCOListVMs {
public void listvms(String cloudusername, String cloudpassword,
String cloudapiurl, String cloudUUID) {

@SuppressWarnings("unused")
LoggerWrapper loggerWrapper = null;
try {
loggerWrapper = LoggerWrapper.getInstance();
Expand Down
4 changes: 1 addition & 3 deletions FlexiMonkey/src/dice/eu/fleximonkey/FCOstopVM.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import java.net.URL;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.logging.Level;
import java.util.logging.Logger;

import javax.xml.datatype.DatatypeFactory;
import javax.xml.datatype.XMLGregorianCalendar;
Expand All @@ -24,6 +22,7 @@ public class FCOstopVM {
@SuppressWarnings("deprecation")
public void stopvm(String vmuuid, String cloudusername,
String cloudpassword, String cloudapiurl, String cloudUUID) {
@SuppressWarnings("unused")
LoggerWrapper loggerWrapper = null;
try {
loggerWrapper = LoggerWrapper.getInstance();
Expand Down Expand Up @@ -78,7 +77,6 @@ public void stopvm(String vmuuid, String cloudusername,
datatypeFactory = DatatypeFactory.newInstance();

now = datatypeFactory.newXMLGregorianCalendar(gregorianCalendar);
@SuppressWarnings("deprecation")
int mins = date.getMinutes();
int sec = date.getSeconds();
int hours = date.getHours();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;

public class FlexiMonkeyReadConfig {
//Set required inputs by default
Expand All @@ -29,6 +27,7 @@ public class FlexiMonkeyReadConfig {
InputStream inputStream;

public String getPropValues() throws IOException {
@SuppressWarnings("unused")
LoggerWrapper loggerWrapper = null;
try {
loggerWrapper = LoggerWrapper.getInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class NetworkBandwidthStress {
public void networkbandwidthstress(String host, String vmpassword,String iperfserver,String time,String sshkeypath) {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
System.setOut(new PrintStream(baos));
@SuppressWarnings("unused")
LoggerWrapper loggerWrapper = null;
try {
loggerWrapper = LoggerWrapper.getInstance();
Expand Down
3 changes: 1 addition & 2 deletions FlexiMonkey/src/dice/eu/fleximonkey/ReadConfig.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package dice.eu.fleximonkey;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

public class ReadConfig {

public void readconfig(){
@SuppressWarnings("unused")
LoggerWrapper loggerWrapper = null;
try {
loggerWrapper = LoggerWrapper.getInstance();
Expand Down
1 change: 1 addition & 0 deletions FlexiMonkey/src/dice/eu/fleximonkey/VMDiskStress.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public void stressdisk(String host, String vmpassword, String memeorytotal,
String loops, String sshkeypath) {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
System.setOut(new PrintStream(baos));
@SuppressWarnings("unused")
LoggerWrapper loggerWrapper = null;
try {
loggerWrapper = LoggerWrapper.getInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
import com.jcraft.jsch.*;

import java.io.*;
import java.util.logging.Level;
import java.util.logging.Logger;

public class VMblockExternalTraffic {

public void blockfirewall(String host,String vmpassword, String sshkeypath) {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
System.setOut(new PrintStream(baos));
@SuppressWarnings("unused")
LoggerWrapper loggerWrapper = null;
try {
loggerWrapper = LoggerWrapper.getInstance();
Expand Down
3 changes: 1 addition & 2 deletions FlexiMonkey/src/dice/eu/fleximonkey/VMcpuStress.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
import com.jcraft.jsch.*;

import java.io.*;
import java.util.logging.Level;
import java.util.logging.Logger;

public class VMcpuStress {

public void stresscpu(String cores, String time, String vmpassword,
String host, String sshkeypath) {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
System.setOut(new PrintStream(baos));
@SuppressWarnings("unused")
LoggerWrapper loggerWrapper = null;
try {
loggerWrapper = LoggerWrapper.getInstance();
Expand Down
1 change: 1 addition & 0 deletions FlexiMonkey/src/dice/eu/fleximonkey/VMmemoryStress.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class VMmemoryStress {
public void stressmemory(String host, String vmpassword,String memorytesterloops,String memeorytotal,String sshkeypath) {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
System.setOut(new PrintStream(baos));
@SuppressWarnings("unused")
LoggerWrapper loggerWrapper = null;
try {
loggerWrapper = LoggerWrapper.getInstance();
Expand Down
4 changes: 2 additions & 2 deletions FlexiMonkey/src/dice/eu/fleximonkey/VMstopService.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
import com.jcraft.jsch.*;

import java.io.*;
import java.util.logging.Level;
import java.util.logging.Logger;

public class VMstopService {

public void stopservice(String host, String vmpassword,String service,String sshkeypath) {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
System.setOut(new PrintStream(baos));
@SuppressWarnings("unused")
LoggerWrapper loggerWrapper = null;
try {
loggerWrapper = LoggerWrapper.getInstance();
Expand All @@ -23,6 +22,7 @@ public void stopservice(String host, String vmpassword,String service,String ssh
}
try {

@SuppressWarnings("unused")
String info = null;
JSch jsch = new JSch();

Expand Down
1 change: 1 addition & 0 deletions FlexiMonkey/src/dice/eu/fleximonkey/WhiteListVMs.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class WhiteListVMs {
public void whitelistvms(String cloudusername, String cloudpassword,
String cloudapiurl, String cloudUUID, String filepath) {

@SuppressWarnings("unused")
LoggerWrapper loggerWrapper = null;
try {
loggerWrapper = LoggerWrapper.getInstance();
Expand Down

0 comments on commit 67bdeb5

Please sign in to comment.