Class Change<S extends SourceFile>


  • public class Change<S extends SourceFile>
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Change​(S original, S fixed, java.util.Set<java.lang.String> rulesThatMadeChanges)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String diff()  
      java.lang.String diff​(java.nio.file.Path relativeTo)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Change

        public Change​(S original,
                      S fixed,
                      java.util.Set<java.lang.String> rulesThatMadeChanges)
    • Method Detail

      • diff

        public java.lang.String diff()
        Returns:
        Git-style patch diff representing the changes to this compilation unit
      • diff

        public java.lang.String diff​(@Nullable
                                     java.nio.file.Path relativeTo)
        Parameters:
        relativeTo - Optional relative path that is used to relativize file paths of reported differences.
        Returns:
        Git-style patch diff representing the changes to this compilation unit