You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mb...@apache.org on 2018/08/31 16:24:06 UTC

[commons-weaver] branch master updated (ae06e22 -> 453cb78)

This is an automated email from the ASF dual-hosted git repository.

mbenson pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-weaver.git.


    from ae06e22  code quality
     add 69ef91e  Build on Java 10; modification to public API requires major version bump
     new 453cb78  remove Javadoc references to javax.activation.DataSource; checkstyle

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 ant/pom.xml                                        |  2 +-
 build-tools/pom.xml                                |  2 +-
 dist/pom.xml                                       |  2 +-
 maven-plugin/pom.xml                               |  2 +-
 modules/normalizer/pom.xml                         |  6 ++--
 .../commons/weaver/normalizer/Normalizer.java      |  4 +--
 modules/pom.xml                                    |  2 +-
 modules/privilizer/api/pom.xml                     |  2 +-
 modules/privilizer/pom.xml                         |  2 +-
 modules/privilizer/weaver/pom.xml                  |  2 +-
 .../commons/weaver/privilizer/Privilizer.java      |  4 +--
 parent/pom.xml                                     |  2 +-
 pom.xml                                            | 33 +++++++++++++++++++++-
 processor/pom.xml                                  |  2 +-
 .../commons/weaver/model/WeaveEnvironment.java     | 32 ++++++++++-----------
 15 files changed, 63 insertions(+), 36 deletions(-)


[commons-weaver] 01/01: remove Javadoc references to javax.activation.DataSource; checkstyle

Posted by mb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mbenson pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-weaver.git

commit 453cb78f9cfc75ab9973df4ed41b1b18ba99fbee
Author: Matt Benson <mb...@apache.org>
AuthorDate: Fri Aug 31 11:23:33 2018 -0500

    remove Javadoc references to javax.activation.DataSource; checkstyle
---
 .../apache/commons/weaver/model/WeaveEnvironment.java | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/processor/src/main/java/org/apache/commons/weaver/model/WeaveEnvironment.java b/processor/src/main/java/org/apache/commons/weaver/model/WeaveEnvironment.java
index 5785dff..0554193 100644
--- a/processor/src/main/java/org/apache/commons/weaver/model/WeaveEnvironment.java
+++ b/processor/src/main/java/org/apache/commons/weaver/model/WeaveEnvironment.java
@@ -25,8 +25,6 @@ import java.util.Properties;
 import java.util.function.Supplier;
 import java.util.logging.Logger;
 
-import javax.activation.DataSource;
-
 import org.apache.commons.lang3.Validate;
 import org.apache.commons.weaver.spi.Cleaner;
 import org.apache.commons.weaver.spi.Weaver;
@@ -38,7 +36,7 @@ public abstract class WeaveEnvironment {
     /**
      * Represents a {@link WeaveEnvironment} resource.
      */
-    public class Resource { 
+    public class Resource {
         private final String name;
 
         Resource(final String name) {
@@ -55,6 +53,8 @@ public abstract class WeaveEnvironment {
 
         /**
          * Get an {@link InputStream} for reading this {@link Resource}.
+         * @return {@link InputStream}
+         * @throws IOException if unable to read
          */
         public InputStream getInputStream() throws IOException {
             return classLoader.getResourceAsStream(name);
@@ -71,6 +71,7 @@ public abstract class WeaveEnvironment {
         /**
          * Get an {@link OutputStream} for writing to this {@link Resource}.
          * @return {@link OutputStream}
+         * @throws IOException if unable to write
          */
         public OutputStream getOutputStream() throws IOException {
             return WeaveEnvironment.this.getOutputStream(name);
@@ -172,27 +173,27 @@ public abstract class WeaveEnvironment {
     }
 
     /**
-     * Get a {@link DataSource} representing {@code cls}.
+     * Get a {@link Resource} representing {@code cls}.
      * @param cls type
-     * @return {@link DataSource}
+     * @return {@link Resource}
      */
     public final Resource getClassfile(final Class<?> cls) {
         return getClassfile(cls.getName());
     }
 
     /**
-     * Get a {@link DataSource} for the specified class.
+     * Get a {@link Resource} for the specified class.
      * @param classname of type
-     * @return {@link DataSource}
+     * @return {@link Resource}
      */
     public final Resource getClassfile(final String classname) {
         return getResource(getResourceName(classname));
     }
 
     /**
-     * Get a {@link DataSource} for the specified resource.
+     * Get a {@link Resource} for the specified resource.
      * @param name of resource
-     * @return {@link DataSource}
+     * @return {@link Resource}
      */
     public final Resource getResource(final String name) {
         return new Resource(name);