Skip to content
Permalink
Browse files
Run eclipse code-formatter. Convert tabs to spaces
  • Loading branch information
mordechaim committed Feb 20, 2020
1 parent caad902 commit ced47b3932e7c1401ebce87f4de37324f79858ca
Showing 34 changed files with 7,604 additions and 7,483 deletions.

Large diffs are not rendered by default.

@@ -27,22 +27,22 @@
*/
module org.update4j {

/*
* Public API
*/
exports org.update4j;
exports org.update4j.inject;
exports org.update4j.service;
exports org.update4j.mapper;
/*
* Public API
*/
exports org.update4j;
exports org.update4j.inject;
exports org.update4j.service;
exports org.update4j.mapper;

requires transitive java.xml;

uses org.update4j.service.Delegate;
uses org.update4j.service.UpdateHandler;
uses org.update4j.service.Launcher;
requires transitive java.xml;

provides org.update4j.service.Delegate with org.update4j.service.DefaultBootstrap;
provides org.update4j.service.UpdateHandler with org.update4j.service.DefaultUpdateHandler;
provides org.update4j.service.Launcher with org.update4j.service.DefaultLauncher;
uses org.update4j.service.Delegate;
uses org.update4j.service.UpdateHandler;
uses org.update4j.service.Launcher;

provides org.update4j.service.Delegate with org.update4j.service.DefaultBootstrap;
provides org.update4j.service.UpdateHandler with org.update4j.service.DefaultUpdateHandler;
provides org.update4j.service.Launcher with org.update4j.service.DefaultLauncher;

}
@@ -24,44 +24,44 @@
*/
public class AddPackage {

private String packageName;
private String targetModule;
private String packageName;
private String targetModule;

/**
* Constructs a new {@link AddPackage} with the given source package name to be
* added to the given target module.
*
* @throws IllegalArgumentException
* If either package name or target module name are either
* {@code null} or an empty string.
*/
public AddPackage(String pkg, String mod) {
if (pkg == null || pkg.isEmpty()) {
throw new IllegalArgumentException("Missing package name.");
}
if (mod == null || mod.isEmpty()) {
throw new IllegalArgumentException("Missing target module name.");
}
/**
* Constructs a new {@link AddPackage} with the given source package name to be
* added to the given target module.
*
* @throws IllegalArgumentException
* If either package name or target module name are either
* {@code null} or an empty string.
*/
public AddPackage(String pkg, String mod) {
if (pkg == null || pkg.isEmpty()) {
throw new IllegalArgumentException("Missing package name.");
}
if (mod == null || mod.isEmpty()) {
throw new IllegalArgumentException("Missing target module name.");
}

packageName = pkg;
targetModule = mod;
}
packageName = pkg;
targetModule = mod;
}

/**
* Returns the package name that is being added.
*
* @return The package name that is being added.
*/
public String getPackageName() {
return packageName;
}
/**
* Returns the package name that is being added.
*
* @return The package name that is being added.
*/
public String getPackageName() {
return packageName;
}

/**
* Returns the target module name that the package is added to.
*
* @return The target module name that the package is added to.
*/
public String getTargetModule() {
return targetModule;
}
/**
* Returns the target module name that the package is added to.
*
* @return The target module name that the package is added to.
*/
public String getTargetModule() {
return targetModule;
}
}

0 comments on commit ced47b3

Please sign in to comment.