Skip to content
Browse files

Removed unused imports

  • Loading branch information...
1 parent 26547fe commit 582f39ce8c13668220ae2082824d1a43ce4e2fd4 slnc committed
Showing with 126 additions and 91 deletions.
  1. +17 −0 .project
  2. +4 −2 src/main/java/com/atlassian/labs/bamboo/git/ExampleReport.java
  3. +1 −3 src/main/java/com/atlassian/labs/bamboo/git/ExampleReportChart.java
  4. +28 −16 src/main/java/com/atlassian/labs/bamboo/git/GitRepository.java
  5. +10 −5 src/main/java/edu/nyu/cs/javagit/api/DotGit.java
  6. +2 −2 src/main/java/edu/nyu/cs/javagit/api/GitDirectory.java
  7. +1 −2 src/main/java/edu/nyu/cs/javagit/api/GitFileSystemObject.java
  8. +2 −2 src/main/java/edu/nyu/cs/javagit/api/JavaGitConfiguration.java
  9. +0 −1 src/main/java/edu/nyu/cs/javagit/api/commands/GitCommitResponse.java
  10. +0 −3 src/main/java/edu/nyu/cs/javagit/api/commands/GitInit.java
  11. +5 −6 src/main/java/edu/nyu/cs/javagit/api/commands/GitMerge.java
  12. +5 −6 src/main/java/edu/nyu/cs/javagit/api/commands/GitRemote.java
  13. +6 −6 src/main/java/edu/nyu/cs/javagit/api/commands/GitRmResponse.java
  14. +1 −2 src/main/java/edu/nyu/cs/javagit/api/commands/GitStatus.java
  15. +2 −2 src/main/java/edu/nyu/cs/javagit/api/commands/GitStatusResponse.java
  16. +1 −1 src/main/java/edu/nyu/cs/javagit/client/GitStatusResponseImpl.java
  17. +2 −3 src/main/java/edu/nyu/cs/javagit/client/IGitFetch.java
  18. +0 −3 src/main/java/edu/nyu/cs/javagit/client/IGitInit.java
  19. +3 −4 src/main/java/edu/nyu/cs/javagit/client/IGitMerge.java
  20. +3 −3 src/main/java/edu/nyu/cs/javagit/client/IGitRemote.java
  21. +18 −1 src/main/java/edu/nyu/cs/javagit/client/cli/CliClient.java
  22. +0 −1 src/main/java/edu/nyu/cs/javagit/client/cli/CliGitClone.java
  23. +5 −6 src/main/java/edu/nyu/cs/javagit/client/cli/CliGitFetch.java
  24. +5 −5 src/main/java/edu/nyu/cs/javagit/client/cli/CliGitMerge.java
  25. +0 −1 src/main/java/edu/nyu/cs/javagit/client/cli/CliGitMv.java
  26. +5 −5 src/main/java/edu/nyu/cs/javagit/client/cli/CliGitRemote.java
View
17 .project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>bgit</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
View
6 src/main/java/com/atlassian/labs/bamboo/git/ExampleReport.java
@@ -1,10 +1,12 @@
package com.atlassian.labs.bamboo.git;
-import java.util.*;
+import java.util.List;
+import java.util.Map;
-import com.atlassian.bamboo.reports.collector.*;
import org.jfree.data.general.Dataset;
+import com.atlassian.bamboo.reports.collector.ReportCollector;
+
/**
* A basic report.
*/
View
4 src/main/java/com/atlassian/labs/bamboo/git/ExampleReportChart.java
@@ -1,8 +1,6 @@
package com.atlassian.labs.bamboo.git;
-import java.util.Map;
-
-import com.atlassian.bamboo.reports.charts.*;
+import com.atlassian.bamboo.reports.charts.BambooReportLineChart;
/**
* A basic chart.
View
44 src/main/java/com/atlassian/labs/bamboo/git/GitRepository.java
@@ -1,12 +1,37 @@
package com.atlassian.labs.bamboo.git;
+import java.io.File;
+import java.io.IOException;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.configuration.HierarchicalConfiguration;
+import org.apache.commons.lang.StringUtils;
+import org.apache.commons.lang.builder.CompareToBuilder;
+import org.apache.commons.lang.builder.EqualsBuilder;
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
import com.atlassian.bamboo.author.Author;
import com.atlassian.bamboo.author.AuthorImpl;
import com.atlassian.bamboo.commit.Commit;
import com.atlassian.bamboo.commit.CommitFile;
import com.atlassian.bamboo.commit.CommitFileImpl;
import com.atlassian.bamboo.commit.CommitImpl;
-import com.atlassian.bamboo.repository.*;
+import com.atlassian.bamboo.repository.AbstractRepository;
+import com.atlassian.bamboo.repository.InitialBuildAwareRepository;
+import com.atlassian.bamboo.repository.MutableQuietPeriodAwareRepository;
+import com.atlassian.bamboo.repository.QuietPeriodHelper;
+import com.atlassian.bamboo.repository.Repository;
+import com.atlassian.bamboo.repository.RepositoryException;
+import com.atlassian.bamboo.repository.ViewCvsFileLinkGenerator;
+import com.atlassian.bamboo.repository.WebRepositoryEnabledRepository;
import com.atlassian.bamboo.security.EncryptionException;
import com.atlassian.bamboo.security.StringEncrypter;
import com.atlassian.bamboo.utils.ConfigUtils;
@@ -16,6 +41,7 @@
import com.atlassian.bamboo.v2.build.BuildContext;
import com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration;
import com.opensymphony.util.UrlUtils;
+
import edu.nyu.cs.javagit.api.DotGit;
import edu.nyu.cs.javagit.api.JavaGitException;
import edu.nyu.cs.javagit.api.Ref;
@@ -23,22 +49,8 @@
import edu.nyu.cs.javagit.api.commands.GitLogOptions;
import edu.nyu.cs.javagit.api.commands.GitLogResponse;
import edu.nyu.cs.javagit.api.commands.GitMerge;
-import edu.nyu.cs.javagit.client.cli.CliGitRemote;
-import edu.nyu.cs.javagit.client.cli.CliGitFetch;
import edu.nyu.cs.javagit.client.cli.CliGitClone;
-import org.apache.commons.configuration.HierarchicalConfiguration;
-import org.apache.commons.lang.StringUtils;
-import org.apache.commons.lang.builder.CompareToBuilder;
-import org.apache.commons.lang.builder.EqualsBuilder;
-import org.apache.commons.lang.builder.HashCodeBuilder;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-import java.io.File;
-import java.io.IOException;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.util.*;
+import edu.nyu.cs.javagit.client.cli.CliGitFetch;
public class GitRepository extends AbstractRepository implements WebRepositoryEnabledRepository, InitialBuildAwareRepository, MutableQuietPeriodAwareRepository
{
View
15 src/main/java/edu/nyu/cs/javagit/api/DotGit.java
@@ -16,16 +16,21 @@
*/
package edu.nyu.cs.javagit.api;
+import java.io.File;
+import java.io.IOException;
+import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
-import java.util.HashMap;
-import java.io.File;
-import java.io.IOException;
-import edu.nyu.cs.javagit.utilities.CheckUtilities;
-import edu.nyu.cs.javagit.api.commands.*;
+import edu.nyu.cs.javagit.api.commands.GitBranch;
+import edu.nyu.cs.javagit.api.commands.GitBranchOptions;
+import edu.nyu.cs.javagit.api.commands.GitBranchResponse;
+import edu.nyu.cs.javagit.api.commands.GitInit;
+import edu.nyu.cs.javagit.api.commands.GitLog;
+import edu.nyu.cs.javagit.api.commands.GitLogOptions;
import edu.nyu.cs.javagit.api.commands.GitLogResponse.Commit;
+import edu.nyu.cs.javagit.utilities.CheckUtilities;
/**
* The <code>DotGit</code> represents the .git directory.
View
4 src/main/java/edu/nyu/cs/javagit/api/GitDirectory.java
@@ -16,10 +16,10 @@
*/
package edu.nyu.cs.javagit.api;
-import java.util.List;
-import java.util.ArrayList;
import java.io.File;
import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
import edu.nyu.cs.javagit.api.commands.GitLog;
import edu.nyu.cs.javagit.api.commands.GitLogOptions;
View
3 src/main/java/edu/nyu/cs/javagit/api/GitFileSystemObject.java
@@ -18,10 +18,9 @@
import java.io.File;
import java.io.IOException;
-import java.util.List;
import java.util.ArrayList;
+import java.util.List;
-import edu.nyu.cs.javagit.api.WorkingTree;
import edu.nyu.cs.javagit.api.commands.GitAdd;
import edu.nyu.cs.javagit.api.commands.GitAddResponse;
import edu.nyu.cs.javagit.api.commands.GitCommit;
View
4 src/main/java/edu/nyu/cs/javagit/api/JavaGitConfiguration.java
@@ -2,14 +2,14 @@
import java.io.File;
import java.io.IOException;
-import java.util.List;
import java.util.ArrayList;
+import java.util.List;
import edu.nyu.cs.javagit.api.commands.CommandResponse;
import edu.nyu.cs.javagit.client.cli.IParser;
import edu.nyu.cs.javagit.client.cli.ProcessUtilities;
-import edu.nyu.cs.javagit.utilities.ExceptionMessageMap;
import edu.nyu.cs.javagit.utilities.CheckUtilities;
+import edu.nyu.cs.javagit.utilities.ExceptionMessageMap;
/**
* This class encapsulates our global API options that client code may want to get or set.
View
1 src/main/java/edu/nyu/cs/javagit/api/commands/GitCommitResponse.java
@@ -22,7 +22,6 @@
import java.util.List;
import edu.nyu.cs.javagit.api.Ref;
-import edu.nyu.cs.javagit.api.commands.CommandResponse;
import edu.nyu.cs.javagit.utilities.CheckUtilities;
/**
View
3 src/main/java/edu/nyu/cs/javagit/api/commands/GitInit.java
@@ -2,14 +2,11 @@
import java.io.File;
import java.io.IOException;
-import java.util.List;
import edu.nyu.cs.javagit.api.JavaGitException;
-import edu.nyu.cs.javagit.api.commands.GitLogResponse.Commit;
import edu.nyu.cs.javagit.client.ClientManager;
import edu.nyu.cs.javagit.client.IClient;
import edu.nyu.cs.javagit.client.IGitInit;
-import edu.nyu.cs.javagit.client.IGitLog;
import edu.nyu.cs.javagit.utilities.CheckUtilities;
public class GitInit {
View
11 src/main/java/edu/nyu/cs/javagit/api/commands/GitMerge.java
@@ -1,15 +1,14 @@
package edu.nyu.cs.javagit.api.commands;
+import java.io.File;
+import java.io.IOException;
+
import edu.nyu.cs.javagit.api.JavaGitException;
import edu.nyu.cs.javagit.api.Ref;
-import edu.nyu.cs.javagit.utilities.CheckUtilities;
-import edu.nyu.cs.javagit.client.IClient;
import edu.nyu.cs.javagit.client.ClientManager;
-import edu.nyu.cs.javagit.client.IGitInit;
+import edu.nyu.cs.javagit.client.IClient;
import edu.nyu.cs.javagit.client.IGitMerge;
-
-import java.io.File;
-import java.io.IOException;
+import edu.nyu.cs.javagit.utilities.CheckUtilities;
public class GitMerge
{
View
11 src/main/java/edu/nyu/cs/javagit/api/commands/GitRemote.java
@@ -1,15 +1,14 @@
package edu.nyu.cs.javagit.api.commands;
+import java.io.File;
+import java.io.IOException;
+
import edu.nyu.cs.javagit.api.JavaGitException;
import edu.nyu.cs.javagit.api.Ref;
-import edu.nyu.cs.javagit.utilities.CheckUtilities;
-import edu.nyu.cs.javagit.client.IClient;
import edu.nyu.cs.javagit.client.ClientManager;
-import edu.nyu.cs.javagit.client.IGitInit;
+import edu.nyu.cs.javagit.client.IClient;
import edu.nyu.cs.javagit.client.IGitRemote;
-
-import java.io.File;
-import java.io.IOException;
+import edu.nyu.cs.javagit.utilities.CheckUtilities;
public class GitRemote
{
View
12 src/main/java/edu/nyu/cs/javagit/api/commands/GitRmResponse.java
@@ -16,12 +16,12 @@
*/
package edu.nyu.cs.javagit.api.commands;
-import java.io.File;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import edu.nyu.cs.javagit.utilities.CheckUtilities;
+import java.io.File;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import edu.nyu.cs.javagit.utilities.CheckUtilities;
/**
* <code>GitRmResponse</code> holds the response information returned by the <code>GitRm</code>
View
3 src/main/java/edu/nyu/cs/javagit/api/commands/GitStatus.java
@@ -20,13 +20,12 @@
import java.io.IOException;
import java.util.List;
+import edu.nyu.cs.javagit.api.GitFileSystemObject;
import edu.nyu.cs.javagit.api.JavaGitException;
import edu.nyu.cs.javagit.client.ClientManager;
import edu.nyu.cs.javagit.client.IClient;
import edu.nyu.cs.javagit.client.IGitStatus;
import edu.nyu.cs.javagit.utilities.CheckUtilities;
-import edu.nyu.cs.javagit.api.GitFileSystemObject;
-import edu.nyu.cs.javagit.api.GitFileSystemObject.Status;
/**
* <code>GitStatus</code> provides an API to status of a git repository.
View
4 src/main/java/edu/nyu/cs/javagit/api/commands/GitStatusResponse.java
@@ -18,16 +18,16 @@
import java.io.File;
import java.util.ArrayList;
+import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
-import java.util.HashMap;
import edu.nyu.cs.javagit.api.GitFileSystemObject;
import edu.nyu.cs.javagit.api.JavaGitException;
import edu.nyu.cs.javagit.api.Ref;
-import edu.nyu.cs.javagit.utilities.CheckUtilities;
import edu.nyu.cs.javagit.api.GitFileSystemObject.Status;
+import edu.nyu.cs.javagit.utilities.CheckUtilities;
/**
* A response data object for &lt;git-status&gt; command
View
2 src/main/java/edu/nyu/cs/javagit/client/GitStatusResponseImpl.java
@@ -19,8 +19,8 @@
import java.io.File;
import edu.nyu.cs.javagit.api.Ref;
-import edu.nyu.cs.javagit.api.commands.GitStatusResponse;
import edu.nyu.cs.javagit.api.GitFileSystemObject.Status;
+import edu.nyu.cs.javagit.api.commands.GitStatusResponse;
/**
* Implementation of a <code>GitStatusResponse</code>. This class adds functionality to set
View
5 src/main/java/edu/nyu/cs/javagit/client/IGitFetch.java
@@ -1,11 +1,10 @@
package edu.nyu.cs.javagit.client;
-import edu.nyu.cs.javagit.api.Ref;
-import edu.nyu.cs.javagit.api.JavaGitException;
-
import java.io.File;
import java.io.IOException;
+import edu.nyu.cs.javagit.api.JavaGitException;
+
public interface IGitFetch
{
void fetch(File repoDirectory)
View
3 src/main/java/edu/nyu/cs/javagit/client/IGitInit.java
@@ -2,13 +2,10 @@
import java.io.File;
import java.io.IOException;
-import java.util.List;
import edu.nyu.cs.javagit.api.JavaGitException;
import edu.nyu.cs.javagit.api.commands.GitInitOptions;
import edu.nyu.cs.javagit.api.commands.GitInitResponse;
-import edu.nyu.cs.javagit.api.commands.GitLogOptions;
-import edu.nyu.cs.javagit.api.commands.GitLogResponse.Commit;
public interface IGitInit {
View
7 src/main/java/edu/nyu/cs/javagit/client/IGitMerge.java
@@ -1,12 +1,11 @@
package edu.nyu.cs.javagit.client;
-import edu.nyu.cs.javagit.api.commands.GitInitResponse;
-import edu.nyu.cs.javagit.api.JavaGitException;
-import edu.nyu.cs.javagit.api.Ref;
-
import java.io.File;
import java.io.IOException;
+import edu.nyu.cs.javagit.api.JavaGitException;
+import edu.nyu.cs.javagit.api.Ref;
+
public interface IGitMerge
{
/**
View
6 src/main/java/edu/nyu/cs/javagit/client/IGitRemote.java
@@ -1,11 +1,11 @@
package edu.nyu.cs.javagit.client;
-import edu.nyu.cs.javagit.api.Ref;
-import edu.nyu.cs.javagit.api.JavaGitException;
-
import java.io.File;
import java.io.IOException;
+import edu.nyu.cs.javagit.api.JavaGitException;
+import edu.nyu.cs.javagit.api.Ref;
+
public interface IGitRemote
{
void remote(File repoDirectory, Ref remoteBranch, String remoteUrl)
View
19 src/main/java/edu/nyu/cs/javagit/client/cli/CliClient.java
@@ -16,7 +16,24 @@
*/
package edu.nyu.cs.javagit.client.cli;
-import edu.nyu.cs.javagit.client.*;
+import edu.nyu.cs.javagit.client.IClient;
+import edu.nyu.cs.javagit.client.IGitAdd;
+import edu.nyu.cs.javagit.client.IGitBranch;
+import edu.nyu.cs.javagit.client.IGitCheckout;
+import edu.nyu.cs.javagit.client.IGitClone;
+import edu.nyu.cs.javagit.client.IGitCommit;
+import edu.nyu.cs.javagit.client.IGitDiff;
+import edu.nyu.cs.javagit.client.IGitGrep;
+import edu.nyu.cs.javagit.client.IGitInit;
+import edu.nyu.cs.javagit.client.IGitLog;
+import edu.nyu.cs.javagit.client.IGitMerge;
+import edu.nyu.cs.javagit.client.IGitMv;
+import edu.nyu.cs.javagit.client.IGitRemote;
+import edu.nyu.cs.javagit.client.IGitReset;
+import edu.nyu.cs.javagit.client.IGitRevert;
+import edu.nyu.cs.javagit.client.IGitRm;
+import edu.nyu.cs.javagit.client.IGitShow;
+import edu.nyu.cs.javagit.client.IGitStatus;
/**
* Command-line implementation of the <code>IClient</code> interface.
View
1 src/main/java/edu/nyu/cs/javagit/client/cli/CliGitClone.java
@@ -18,7 +18,6 @@
import java.io.File;
import java.io.IOException;
-import java.net.URL;
import java.util.ArrayList;
import java.util.List;
View
11 src/main/java/edu/nyu/cs/javagit/client/cli/CliGitFetch.java
@@ -1,17 +1,16 @@
package edu.nyu.cs.javagit.client.cli;
+import java.io.File;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+
import edu.nyu.cs.javagit.api.JavaGitConfiguration;
import edu.nyu.cs.javagit.api.JavaGitException;
-import edu.nyu.cs.javagit.api.Ref;
import edu.nyu.cs.javagit.api.commands.CommandResponse;
import edu.nyu.cs.javagit.client.IGitFetch;
import edu.nyu.cs.javagit.utilities.CheckUtilities;
-import java.io.File;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
-
public class CliGitFetch implements IGitFetch
{
View
10 src/main/java/edu/nyu/cs/javagit/client/cli/CliGitMerge.java
@@ -1,5 +1,10 @@
package edu.nyu.cs.javagit.client.cli;
+import java.io.File;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+
import edu.nyu.cs.javagit.api.JavaGitConfiguration;
import edu.nyu.cs.javagit.api.JavaGitException;
import edu.nyu.cs.javagit.api.Ref;
@@ -7,11 +12,6 @@
import edu.nyu.cs.javagit.client.IGitMerge;
import edu.nyu.cs.javagit.utilities.CheckUtilities;
-import java.io.File;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
-
public class CliGitMerge implements IGitMerge
{
View
1 src/main/java/edu/nyu/cs/javagit/client/cli/CliGitMv.java
@@ -27,7 +27,6 @@
import edu.nyu.cs.javagit.api.commands.GitMvResponse;
import edu.nyu.cs.javagit.client.GitMvResponseImpl;
import edu.nyu.cs.javagit.client.IGitMv;
-import edu.nyu.cs.javagit.utilities.CheckUtilities;
import edu.nyu.cs.javagit.utilities.ExceptionMessageMap;
/**
View
10 src/main/java/edu/nyu/cs/javagit/client/cli/CliGitRemote.java
@@ -1,5 +1,10 @@
package edu.nyu.cs.javagit.client.cli;
+import java.io.File;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+
import edu.nyu.cs.javagit.api.JavaGitConfiguration;
import edu.nyu.cs.javagit.api.JavaGitException;
import edu.nyu.cs.javagit.api.Ref;
@@ -7,11 +12,6 @@
import edu.nyu.cs.javagit.client.IGitRemote;
import edu.nyu.cs.javagit.utilities.CheckUtilities;
-import java.io.File;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
-
public class CliGitRemote implements IGitRemote
{

0 comments on commit 582f39c

Please sign in to comment.
Something went wrong with that request. Please try again.