Skip to content

Commit

Permalink
Merge pull request #46 from DevFactory/release/general-code-quality-f…
Browse files Browse the repository at this point in the history
…ix-1

General code quality fix-1
  • Loading branch information
R. Tyler Croy committed Jun 15, 2016
2 parents 8e6bca8 + e691879 commit 4210a13
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
import java.net.URL;

public class DefaultMavenRepositoryBuilder {

private DefaultMavenRepositoryBuilder () {

}

public static MavenRepositoryImpl createStandardInstance() throws Exception {
MavenRepositoryImpl instance = new MavenRepositoryImpl();
instance.addRemoteRepository("public", new URL("http://repo.jenkins-ci.org/public/"));
Expand Down
1 change: 1 addition & 0 deletions src/main/java/org/jvnet/hudson/update_center/HPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public String getBuiltBy() throws IOException {
* @deprecated
* Most probably you should be using {@link #getRequiredJenkinsVersion()}
*/
@Deprecated
public String getRequiredHudsonVersion() throws IOException {
return getManifestAttributes().getValue("Hudson-Version");
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/jvnet/hudson/update_center/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public class Main {
@Option(name="-skip-release-history",usage="Skip generation of release history")
public boolean skipReleaseHistory;

public Signer signer = new Signer();
private Signer signer = new Signer();

public static final String EOL = System.getProperty("line.separator");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,10 @@ public Collection<PluginHistory> listHudsonPlugins() throws PlexusContainerExcep
}

PluginHistory p = plugins.get(a.artifactId);
if (p==null)
plugins.put(a.artifactId, p=new PluginHistory(a.artifactId));
if (p==null) {
p=new PluginHistory(a.artifactId);
plugins.put(a.artifactId, p);
}
p.addArtifact(createHpiArtifact(a, p));
p.groupId.add(a.groupId);
}
Expand Down

0 comments on commit 4210a13

Please sign in to comment.