diff options
author | Martín Schonaker <[email protected]> | 2014-04-09 17:24:27 -0300 |
---|---|---|
committer | Martín Schonaker <[email protected]> | 2014-04-09 17:24:27 -0300 |
commit | 2ef19b55ae6913a289df68c3756a990f376354aa (patch) | |
tree | b3e434c1146190c0c262ad2a34258b6cf7be584b /api/src/main/java/org/osjava/jardiff/StreamDiffHandler.java | |
parent | 179643236fac79cc4bd02d5201674536ff636c11 (diff) |
Issue #25: @Deprecated should require a minor version bump instead of a major one.
Diffstat (limited to 'api/src/main/java/org/osjava/jardiff/StreamDiffHandler.java')
-rw-r--r-- | api/src/main/java/org/osjava/jardiff/StreamDiffHandler.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/api/src/main/java/org/osjava/jardiff/StreamDiffHandler.java b/api/src/main/java/org/osjava/jardiff/StreamDiffHandler.java index e0600df..f5f7176 100644 --- a/api/src/main/java/org/osjava/jardiff/StreamDiffHandler.java +++ b/api/src/main/java/org/osjava/jardiff/StreamDiffHandler.java @@ -21,6 +21,7 @@ import java.io.BufferedWriter; import java.io.IOException; import java.io.OutputStream; import java.io.OutputStreamWriter; + import org.objectweb.asm.Type; /** @@ -395,6 +396,14 @@ public class StreamDiffHandler implements DiffHandler } /** + * Invokes {@link #classChanged(ClassInfo, ClassInfo)}. + */ + public void classDeprecated(ClassInfo oldInfo, ClassInfo newInfo) + throws DiffException { + classChanged(oldInfo, newInfo); + } + + /** * Write out info aboout a changed field. * This writes out a <fieldchange> node, followed by a * <from> node, with the old information about the field @@ -421,6 +430,14 @@ public class StreamDiffHandler implements DiffHandler } /** + * Invokes {@link #fieldChanged(FieldInfo, FieldInfo)}. + */ + public void fieldDeprecated(FieldInfo oldInfo, FieldInfo newInfo) + throws DiffException { + fieldChanged(oldInfo, newInfo); + } + + /** * Write out info aboout a changed method. * This writes out a <methodchange> node, followed by a * <from> node, with the old information about the method @@ -447,6 +464,14 @@ public class StreamDiffHandler implements DiffHandler } /** + * Invokes {@link #methodChanged(MethodInfo, MethodInfo)}. + */ + public void methodDeprecated(MethodInfo oldInfo, MethodInfo newInfo) + throws DiffException { + methodChanged(oldInfo, newInfo); + } + + /** * End the changed section for an individual class. * This closes the <classchanged> node. * |