diff options
author | Sven Gothel <[email protected]> | 2014-05-13 16:06:10 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-05-13 23:05:54 +0200 |
commit | d44d189bfd816a9936ae20d8582ec8475c830189 (patch) | |
tree | 1a7d899e4996fe3edb0401fe5910d06e636a69f2 /api/src/main/java/org/osjava/jardiff/MethodInfo.java | |
parent | 8989dfc820b14c25ef7d9cb4bad8e265719c5ef3 (diff) |
AbstractInfo: Add generic access to signature and descriptor ; Dumper: More info (access, desc + sig), allow passing PrintStream
Diffstat (limited to 'api/src/main/java/org/osjava/jardiff/MethodInfo.java')
-rw-r--r-- | api/src/main/java/org/osjava/jardiff/MethodInfo.java | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/api/src/main/java/org/osjava/jardiff/MethodInfo.java b/api/src/main/java/org/osjava/jardiff/MethodInfo.java index b7ac46b..0a59c60 100644 --- a/api/src/main/java/org/osjava/jardiff/MethodInfo.java +++ b/api/src/main/java/org/osjava/jardiff/MethodInfo.java @@ -26,18 +26,18 @@ public final class MethodInfo extends AbstractInfo /** * The method descriptor. */ - private String desc; + private final String desc; /** * The signature of the method. */ - private String signature; + private final String signature; /** * An array of the exceptions thrown by this method. */ - private String[] exceptions; - + private final String[] exceptions; + /** * Create a new MethodInfo with the specified parameters. * @@ -53,25 +53,17 @@ public final class MethodInfo extends AbstractInfo this.signature = signature; this.exceptions = exceptions; } - - /** - * Get the descriptor for the method. - * - * @return the descriptor - */ + + @Override public final String getDesc() { return desc; } - - /** - * Get the signature for the method. - * - * @return the signature - */ + + @Override public final String getSignature() { return signature; } - + /** * Get the array of exceptions which can be thrown by the method. * |