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 with 7,604 additions and 7,483 deletions.
  1. +58 −14 formatter.xml
  2. +15 −15 src/main/java/module-info.java
  3. +36 −36 src/main/java/org/update4j/AddPackage.java
  4. +242 −241 src/main/java/org/update4j/Bootstrap.java
  5. +504 −505 src/main/java/org/update4j/ConfigImpl.java
  6. +2,374 −2,340 src/main/java/org/update4j/Configuration.java
  7. +42 −42 src/main/java/org/update4j/DynamicClassLoader.java
  8. +899 −899 src/main/java/org/update4j/FileMetadata.java
  9. +29 −29 src/main/java/org/update4j/LaunchContext.java
  10. +41 −41 src/main/java/org/update4j/OS.java
  11. +17 −17 src/main/java/org/update4j/PlaceholderMatchType.java
  12. +105 −105 src/main/java/org/update4j/Property.java
  13. +358 −354 src/main/java/org/update4j/SingleInstanceManager.java
  14. +98 −95 src/main/java/org/update4j/Update.java
  15. +77 −77 src/main/java/org/update4j/UpdateContext.java
  16. +6 −6 src/main/java/org/update4j/inject/InjectSource.java
  17. +10 −10 src/main/java/org/update4j/inject/InjectTarget.java
  18. +83 −84 src/main/java/org/update4j/inject/Injectable.java
  19. +9 −9 src/main/java/org/update4j/inject/UnsatisfiedInjectionException.java
  20. +305 −305 src/main/java/org/update4j/mapper/ConfigMapper.java
  21. +282 −282 src/main/java/org/update4j/mapper/FileMapper.java
  22. +40 −40 src/main/java/org/update4j/mapper/XmlMapper.java
  23. +286 −286 src/main/java/org/update4j/service/DefaultBootstrap.java
  24. +92 −92 src/main/java/org/update4j/service/DefaultLauncher.java
  25. +173 −177 src/main/java/org/update4j/service/DefaultUpdateHandler.java
  26. +21 −21 src/main/java/org/update4j/service/Delegate.java
  27. +16 −16 src/main/java/org/update4j/service/Launcher.java
  28. +103 −103 src/main/java/org/update4j/service/Service.java
  29. +293 −262 src/main/java/org/update4j/service/UpdateHandler.java
  30. +75 −75 src/main/java/org/update4j/util/ArgUtils.java
  31. +214 −213 src/main/java/org/update4j/util/FileUtils.java
  32. +366 −366 src/main/java/org/update4j/util/PropertyManager.java
  33. +137 −129 src/main/java/org/update4j/util/StringUtils.java
  34. +198 −197 src/main/java/org/update4j/util/Warning.java

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.
You can’t perform that action at this time.